aboutsummaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2020-03-30Connection::resolveServer(): reparent jobs to ensure proper clean-awayKitsune Ral
This is a spot fix for #398; Quotient 0.6 will reparent all jobs to make sure they are removed after the connection is gone (this also partially helps with #397).
2020-03-30Connection::resolveServer(): refactorKitsune Ral
Also: use 4-arg connect() to make sure lambdas are disconnected if the connection is gone.
2020-03-30BaseJob: validate the connection health before running the requestKitsune Ral
2020-03-30BaseJob: shutdown timers on abandoning and destructionKitsune Ral
A part of the fix for #398.
2020-03-27Fix compatibility with MSVC 2015Kitsune Ral
2020-03-26Connection: allRooms(), rooms(), roomsCount(); deprecate roomMap()Kitsune Ral
Backport of #354.
2020-03-26SsoSession and Connection::prepareForSso()Kitsune Ral
Final part of #388 backport.
2020-03-26Connection: loginWithToken(); connectWithToken() -> assumeIdentity()Kitsune Ral
Part of #388 backport.
2020-03-26Connection: support getting the list of login flowsKitsune Ral
Backport of #386.
2020-03-26Support for receiving m.reaction eventsKitsune Ral
Continuation of the #341 backport.
2020-03-25Support of MSC1849 message editingKitsune Ral
This is a backport of #341, as fixed by #373 and #376.
2020-03-25Room: make downloaded file name building more robustKitsune Ral
Backport of a fix for #366.
2020-03-25Redaction: update essential keys listKitsune Ral
No more special: - prev_content (MSC1954, fixes #318) - aliases (follow up on MSC2432)
2020-03-25Initialise read marker if none is found in the whole timelineKitsune Ral
Backport of a fix to #361.
2020-03-25Fix room highlighting for names with hashtagAlexey Andreyev
Fixes #359
2020-03-25BaseJob: Only send access token when neededKitsune Ral
This is a basic fix for #358, without a workaround added in 5937127b (such workaround would break API compatibility).
2020-03-25BaseJob: support M_USER_DEACTIVATED error codeKitsune Ral
Backport for #344.
2020-03-25Update the cache for sure if unread counters were changedKitsune Ral
Backport of #345.
2020-03-25setAvatarForRoom: try recover from otherAvatars inconsistencyKitsune Ral
Cherry-pick of what seems to be a fix for #347.
2020-03-25.well-known supportKitsune Ral
Squashed cherry-pick of #330.
2020-03-25Support for server notices rooms (MSC1452)Kitsune Ral
Fixes #326.
2020-03-25linkifyUrls(): be more conservative in parsing serverpartsKitsune Ral
Closes #321.
2020-03-25Fix missing alias updates; make Room aliases accessors work (using MSC2432)Kitsune Ral
Backport of #383 to 0.5.x branch. Fixes #301.
2020-03-25Compatibility with Qt 5.14Kitsune Ral
2019-05-20Connection: Fix a race condition in direct chats handling upon initial syncKitsune Ral
Closes #323.
2019-05-20Connection::onSyncSuccess(): fix using after move()Kitsune Ral
Also rewrite the account data piece with visit().
2019-05-20event.h: add doc-comments; deprecate ptrCast()Kitsune Ral
2019-04-16Connection::logout: ignore ContentAccessErrorKitsune Ral
Closes #316.
2019-04-16BaseJob: preserve the calculated error code if JSON error code is unknownKitsune Ral
Resetting the code to IncorrectRequestError has been a part of the cause for the incorrect Quaternion behaviour on expired tokens.
2019-04-15BaseJob: fix a possible crash upon logoutKitsune Ral
See https://github.com/QMatrixClient/Quaternion/issues/566 for details.
2019-04-06Room::processStateEvent: be more careful with signals handling at user renamesKitsune Ral
2019-04-04Clean up on clang-tidy/clazy analysisKitsune Ral
2019-04-03Room::postFile: initiate uploading the file even before adding a pending eventKitsune Ral
This is to make sure a pending event with file transfer already placed.
2019-04-03room.h: more doc-commentsKitsune Ral
2019-03-31Room: track invited users; polish the room naming algorithmKitsune Ral
It's no more entirely along the spec lines but gives better results with or without lazy-loading, across a wide range of cases. Closes #310.
2019-03-31Room::updateData(): recalculate room name only when state changes occurKitsune Ral
2019-03-31Room::refreshDisplayName() - for debugging purposes onlyKitsune Ral
Clients should not need to call this method explicitly.
2019-03-30User::nameForRoom(): null hint is not a hintKitsune Ral
This caused the library to erroneously believe that users with no representation in other rooms have no display name even if that display name is provided for the given room.
2019-03-30Connection: make sure to mark rooms supposed to be direct chats as suchKitsune Ral
Closes #305. Relies on correct tracking of Invite membership from the previous commit.
2019-03-30Room::processStateEvent, User: take the previous membership state from ↵Kitsune Ral
oldStateEvent memberJoinState() just happens to return the not-yet-updated state, making its use around state changes very sensitive to moving things around. The event's own prevContent is unsigned, therefore untrusted.
2019-03-29Room::processRedaction(): avoid accidental creation of entries inKitsune Ral
currentState; cleanup
2019-03-27Connection::domain()Kitsune Ral
2019-03-26Room::canSwitchVersions(): return false on tombstoned roomsKitsune Ral
A softer take on #306.
2019-03-24linkifyUrls(): fix linkification of emails containing "www."Kitsune Ral
Closes #303.
2019-03-23Room::downloadFile(): Tighten URL validationsKitsune Ral
Check the URL before passing over to Connection::downloadFile(), not only the file name.
2019-03-23Update to the latest CS API definitionsKitsune Ral
No breaking changes; GetAccountDataJob/GetAccountDataPerRoomJob added.
2019-03-21sanitized(): revert to only dropping Unicode RLO/LRO markers (no HTML escaping)Kitsune Ral
Because user display names (in particular) can be used in non-HTML context. Clients should take care about HTML escaping where appropriate.
2019-03-21Room::displayName: fix NOTIFY signal for Q_PROPERTYKitsune Ral
2019-03-17prettyPrint: do not apply sanitized()Kitsune Ral
Only display names should be sanitized; messages are only HTML-escaped.
2019-03-17User: strip RLO/LRO markers on renaming as wellKitsune Ral
Continuation of work on #545.