aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-06-13Make RequestData compile againAlexey Rusakov
This fixes reliance on QIODevice being magically available for std::unique_ptr<> by indirect inclusion. Since Qt 6 this inclusion no more happens, time to #include <QIODevice> explicitly.
2021-06-13uri.cpp, room.*: Get rid of QStringRefsAlexey Rusakov
2021-06-12connection.cpp: erase_if -> remove_ifAlexey Rusakov
erase_if is now also provided by Qt; doing pretty much the same thing, the Qt implementation only returns the number of removed entries instead of returning a collection of them, however. Worth admitting at this point that the function in connection.cpp has never had the semantics of STL's erase_if() and doesn't quite have the semantics of remove_if() either; but at least it's closer to remove_if().
2021-06-12Adjust to new moc/QMetaType requirementsAlexey Rusakov
See https://www.qt.io/blog/whats-new-in-qmetatype-qvariant#qmetatype-knows-your-properties-and-methods-types
2021-06-12CMakeLists: require at least Qt 5.12; add Qt 6 supportAlexey Rusakov
2021-06-070.6.7Alexey Rusakov
2021-06-07Connection::joinRoom() shouldn't enforce room stateAlexey Rusakov
This is an adjustment to the earlier fix of #471: if a join is immediately followed by a leave (e.g. from another client/bot - you can't do it programmatically from libQuotient) the sync may bring the room already in the Leave state; therefore `joinRoom` should not impose the state but rather ask `provideRoom` to create a `Join` room - just as it's designed when passed an empty `joinState`.
2021-06-07Connection::joinRoom() shouldn't enforce room stateAlexey Rusakov
This is an adjustment to the earlier fix of #471: if a join is immediately followed by a leave (e.g. from another client/bot - you can't do it programmatically from libQuotient) the sync may bring the room already in the Leave state; therefore `joinRoom` should not impose the state but rather ask `provideRoom` to create a `Join` room - just as it's designed when passed an empty `joinState`.
2021-05-25FixesArnav Rawat
2021-05-25Merge branch 'quotient-im:master' into pinnedarawaaa
2021-05-20Add libquotient.kdev4 to .gitignoreTobias Fella
2021-05-20Merge pull request #466 from TobiasFella/gitignoreAlexey Rusakov
Add libquotient.kdev4 to .gitignore
2021-05-19Add libquotient.kdev4 to .gitignoreTobias Fella
2021-05-09Fix joinedRoom signal not being emitted in some casesAlexey Rusakov
An alternative implementation of #463 (and thanks to Carl for spotting the original problem).
2021-05-08CI: Use GCC 9 where GCC 8 wasAlexey Rusakov
GitHub images no more have GCC 8. (cherry picked from commit f89ece678c47a54a28c91c2d0ced65ba3e9a6540)
2021-05-08Fix joinedRoom signal not being emitted in some casesAlexey Rusakov
An alternative implementation of #463 (and thanks to Carl for spotting the original problem).
2021-04-26CI: Use GCC 9 where GCC 8 wasAlexey Rusakov
GitHub images no more have GCC 8.
2021-04-26Merge pull request #461 from quotient-im/work/force-load-user-dataAlexey Rusakov
Make it possible to load the user metadata
2021-04-26Make it possible to load the user metadataCarl Schwan
In the normal case there is always a room that is associated with an user. So it is in most of the cases, possible to load the metadata (display name and avatar url) with the help of the room. In some cases, it is not possible. For example, when opening an user matrix link pointing to an user and not to a room. In this case, we need to load the metadata independly of the room, since the user is not linked to a room.
2021-04-03Merge pull request #460 from Aksem/masterAlexey Rusakov
Fix broken links in README
2021-04-03Fix broken links in README.Vladyslav Hnatiuk
2021-03-27debian/changelog: prepare the 0.6.6-1 releaseAndres Salomon
2021-03-27Update to upstream version '0.6.6'Andres Salomon
2021-03-170.6.6Alexey Rusakov
2021-03-11historyedge() a result of findInTimeline()Arnav Rawat
2021-03-11WhoopsArnav Rawat
2021-03-11Support for pinned messagesArnav Rawat
Fixes issue #188
2021-03-04Tighten up against malformed user ids in eventsAlexey Rusakov
A few months ago 3c85f049 introduced validation of user ids but the rest of the library code wasn't updated to the fact that Connection::user() may quite legitimately (if not routinely) return nullptr, leading to crashes particularaly when malformed ids come from the wire. This commit adds necessary checks before using the value returned from user(). Closes #456.
2021-02-26Merge pull request #457 from quotient-im/work/capabilityCarl Schwan
Add public method to determine if we can change the user password
2021-02-26Apply suggestionCarl Schwan
Co-authored-by: Alexey Rusakov <Kitsune-Ral@users.sf.net>
2021-02-26Add public method to determine if we can change the user passwordCarl Schwan
2021-02-23Merge pull request #455 from arawaaa/removeavatarAlexey Rusakov
Adds ability remove the avatar
2021-02-22Adds ability remove the avatarArnav Rawat
Not possible previously
2021-02-210.6.5Alexey Rusakov
2021-02-21Update documentationAlexey Rusakov
Replace references to Spectral with NeoChat as a more lively and better supported client; deprecate qmake; remove a mention that libQuotient uses LGPL-2.1-only because it's not true, according to ./COPYING
2021-02-21SECURITY.md: 0.5.x is no more supportedAlexey Rusakov
It's been 2 years, time to move on.
2021-02-21Update a comment that still mentions RiotAlexey Rusakov
(cherry picked from commit b25785d294669f2bab7dcd1e3cd1fba61991fe46)
2021-02-21Uri: support abbreviated types in Matrix URIsAlexey Rusakov
As per the latest iteration of MSC2312, room/, user/ and event/ are only supported for parsing and replication but not for emitting from Matrix identifiers. (cherry picked from commit 86f24d1ecf300b82b3a7253b81a2c392669d2c2b)
2021-02-21Update a comment that still mentions RiotAlexey Rusakov
2021-02-21Uri: support abbreviated types in Matrix URIsAlexey Rusakov
As per the latest iteration of MSC2312, room/, user/ and event/ are only supported for parsing and replication but not for emitting from Matrix identifiers.
2021-02-16Merge pull request #442 from ognarb/localuserinfoAlexey Rusakov
Load user info (display name + avatar) for the local user.
2021-02-15Update quotest/quotest.cppCarl Schwan
Co-authored-by: Alexey Rusakov <Kitsune-Ral@users.sf.net>
2021-02-09UpdateCarl Schwan
2021-01-28Fix rich edits (transmit)Roland Pallai
The new formatted_body was not included into new content on edit due to badly constructed json. (cherry picked from commit df6b2d31ec8f2f5890826719e960f450a4968f22)
2021-01-28Merge pull request #449 from rpallai/richeditfixAlexey Rusakov
Fix rich edits (transmit)
2021-01-28Fix rich replies json format (transmit)Roland Pallai
With this patch it looks like: "m.relates_to": { "m.in_reply_to": { "event_id": "$another:event.com" } } instead of: "m.relates_to": { "event_id": "$another:event.com", "rel_type": "m.in_reply_to" }, So it fits the specification by now. https://matrix.org/docs/spec/client_server/r0.6.1#rich-replies (cherry picked from commit b850edadde2299b122a5cd17da85e943430e43b7)
2021-01-28Merge pull request #448 from rpallai/richreplyfixAlexey Rusakov
Fix rich replies json format (transmit)
2021-01-28Drop qmake from CIAlexey Rusakov
If someone still needs it - fix it; otherwise building with qmake will be dropped in 0.7
2021-01-28Fix rich edits (transmit)Roland Pallai
The new formatted_body was not included into new content on edit due to badly constructed json.
2021-01-28Fix rich replies json format (transmit)Roland Pallai
With this patch it looks like: "m.relates_to": { "m.in_reply_to": { "event_id": "$another:event.com" } } instead of: "m.relates_to": { "event_id": "$another:event.com", "rel_type": "m.in_reply_to" }, So it fits the specification by now. https://matrix.org/docs/spec/client_server/r0.6.1#rich-replies