aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-06-13AppVeyor: disable E2EE building, drop older QtAlexey Rusakov
E2EE will be remade anyway so building it now makes little sense.
2021-06-13BaseJob: FollowRedirectsAttribute -> RedirectPolicyAttributeAlexey Rusakov
The latter obsoleted the former since Qt 5.9, actually.
2021-06-13CI: version Qt cacheAlexey Rusakov
2021-06-13CI: Use Qt 5.12, as required from nowAlexey Rusakov
2021-06-13Generate a moc file for quotient_common.hAlexey Rusakov
Previously Q_NAMESPACE did not require its own moc, somehow blending into others; now it does.
2021-06-13Uri: Fix ambiguity around QChar constructorsAlexey Rusakov
QChar now accepts more types for construction, and that unraveled concatenation of a Type/SecondaryType character with a QString. To fix it, give the compiler a hint by casting to the enum's underlying type (which also nicely documents that we _actually_ switch from enum to character type).
2021-06-13EncryptionEvent: fix "too perfect forwarding"Alexey Rusakov
Now that QMetaType introspects into types, it reveals hidden problems (which is very nice of it).
2021-06-13Exclude code no more needed with Qt6Alexey Rusakov
2021-06-13Disable the piece depending on Qt Multimedia for Qt 6Alexey Rusakov
Waiting for the Multimedia arrival in Qt 6.2.
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-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-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-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-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-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-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-28Merge pull request #449 from rpallai/richeditfixAlexey Rusakov
Fix rich edits (transmit)
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
2021-01-25Merge branch 'fix-ci' into masterAlexey Rusakov
2021-01-25Room::P::removeMemberFromMap: comment that Q_ASSERTAlexey Rusakov
Maybe it's not even that bad, given that an effort is taken to recover from the internal member list corruption.
2021-01-25Revert to running quotest from the source treeAlexey Rusakov
For some reason the installed one doesn't find QtTest dynamic library.
2021-01-25Make quotest origin even more informativeAlexey Rusakov
2021-01-25CI: build libraries staticallyAlexey Rusakov
Shared libraries are a bit of a chore to handle, maybe another time.
2021-01-25Use NinjaAlexey Rusakov
2021-01-25CI: install to ~/.local; invoke quotest from thereAlexey Rusakov
That way InstallQuotest feature is also tested. Also fix the Valgrind suppression file path. Also: use cmake arguments instead of pushd/popd dance
2021-01-25CI: include github.ref in the quotest originAlexey Rusakov
2021-01-25CMakeLists.txt: refactor configuration of featuresAlexey Rusakov
- The feature summary is only generated at the end of the configuration. - InstallQuotest feature is defined in quotest/CMakeLists.txt now, and therefore is only available if quotest is getting built (i.e., if BUILD_TESTING is on). - API generation configuration code merged from two places into one.
2021-01-25Autotests: make sure types passed to QCOMPARE are the sameAlexey Rusakov
The current test may fail with "undefined reference" errors discussed at https://stackoverflow.com/questions/14198972/undefined-symbols-for-qcompare.
2021-01-25Collapse the autotest entirely in *.cpp fileAlexey Rusakov
Otherwise CMake's automoc complains that it doesn't see a moc-able class definition in the file that includes "*.moc".
2021-01-25CI: no need to explicitly build quotestAlexey Rusakov
Now that CTest is included, quotest target should build (and install) automatically together with the library.