aboutsummaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2020-05-31Move around and format codeKitsune Ral
No functional changes here.
2020-05-31room.cpp: clean away unused variablesKitsune Ral
2020-05-12basejob.cpp: nitpicks from clang-formatKitsune Ral
2020-04-17Regenerate API files using new GTAD and refreshed templatesKitsune Ral
No functional changes.
2020-04-17gtad.yaml, *.mustache: upgrade to GTAD 0.7 betaKitsune Ral
That means much more readable templates thanks to GTAD 0.7 in turn using the upgrade Mustache engine.
2020-04-15Connection: track resolving and login flows jobs; isUsable()Kitsune Ral
This is to prevent the jobs from several resolveServer() / setHomeserver() invocations running in parallel.
2020-04-15Connection: cleanup and reformatKitsune Ral
2020-04-15Connection: connectToServer -> loginWithPasswordKitsune Ral
connectToServer() is left for compatibility but deprecated.
2020-04-14BaseJob::makeRequestUrl(): even more tolerance to slash separatorsKitsune Ral
The code is really defensive now, making sure there's exactly one slash between the base path and the endpoint. It's still very conservative about the path composition otherwise (no normalisation etc.).
2020-04-14Settings: use UTF-8 encodingKitsune Ral
Fixes #403.
2020-04-14Room: emit updatedEvent() on un-reactionKitsune Ral
2020-04-12Room::safeMemberName()Kitsune Ral
Pulled from Quaternion code.
2020-04-12Room::canSwitchVersions(): refactor and make Q_INVOKABLEKitsune Ral
2020-04-08EventStatus::ReplacedKitsune Ral
This can be handy to pass the replaced status to QML.
2020-04-07BaseJob: don't finish and re-try at the same timeKitsune Ral
Due to a missing return statement, a retry with auth case led to the job being finished and pending at the same time, with no good consequences.
2020-04-07Room::addNewMessageEvents: fix an assertion failure on empty senderKitsune Ral
When a message is redacted it has no sender. If it happens to be in the bulkhead, Quotient tries to promote a read marker over it and fails on being unable to resolve the author.
2020-04-06BaseJob: disable pipeliningKitsune Ral
Longer running on RHEL/CentOS 8 leads to crashes that no more occur with disabled pipelining.
2020-04-06Revert changes accidentally sneaked in with the previous commitKitsune Ral
2020-04-06CMakeLists: install header files to a subdirectoryKitsune Ral
This is a Quotient part of #328 fix; QtOlm part is pending.
2020-04-05RequestData: create empty QByteArray by defaultKitsune Ral
May fix #380. Also: remove explicit copying disablers, the unique_ptr<> member disables copying just fine.
2020-03-31Reparent all jobs to their connectionsKitsune Ral
(Mostly) fixes #397. Fixes #398. If there's a need to reparent the job to some other object, it should now be done after callApi()/run() call (not that there were many touch points before that moment, anyway). Collateral damage: job-starting methods are no more const (but that didn't belong them anyway, too).
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: check the connection even harderKitsune Ral
2020-03-30BaseJob: shutdown timers on abandoning and destructionKitsune Ral
A part of the fix for #398.
2020-03-27Fix FTBFS with Quotient_ENABLE_E2EEKitsune Ral
2020-03-26Refactoring around Connection::onSyncSuccess()Kitsune Ral
The method grew large and a bit unwieldy over the years.
2020-03-26AliasesEventContent::toJson(): optimise generated JSONKitsune Ral
2020-03-26Room::aliases(): don't add canonical alias if it's emptyKitsune Ral
Fixes #394.
2020-03-24Connection: fix a deprecation warningKitsune Ral
2020-03-23Expose aliases() and altAliases() as propertiesBlack Hat
2020-03-21Merge pull request #383 from ram-nad/msc2432-fixKitsune Ral
fixing msc2432
2020-03-21Update aliases code lib/room.cppRam Nad
Co-Authored-By: Kitsune Ral <Kitsune-Ral@users.sf.net>
2020-03-20Merge branch 'msc2432-fix' of github.com:ram-nad/libQuotient into msc2432-fixRam Nad
2020-03-20emit nameChanged() on AliasesChangeRam Nad
2020-03-20Make rvalue constructor explicit Update lib/events/roomcanonicalaliasevent.hRam Nad
Co-Authored-By: Kitsune Ral <Kitsune-Ral@users.sf.net>
2020-03-20Make constructor explicit lib/events/roomcanonicalaliasevent.hRam Nad
Co-Authored-By: Kitsune Ral <Kitsune-Ral@users.sf.net>
2020-03-20dont use thisRam Nad
2020-03-20added altAliases()Ram Nad
2020-03-20Merge pull request #389 from quotient-im/kitsune-login-flowsKitsune Ral
Support single sign-on
2020-03-20made suggested changesRam Nad
2020-03-20Add warranty in lib/events/roomcanonicalaliasevent.hRam Nad
Co-Authored-By: Kitsune Ral <Kitsune-Ral@users.sf.net>
2020-03-19Merge pull request #376 from rpallai/editing-fixesKitsune Ral
Simple changes for sending edits
2020-03-18SsoSession and Connection::prepareForSso()Kitsune Ral
The response in the web browser is quite barebone, just enough to give feedback that things are alright. Closes #386. Closes #388.
2020-03-17Use constantRoland Pallai
Co-Authored-By: Kitsune Ral <Kitsune-Ral@users.sf.net>
2020-03-17MSC1849 compatible edited messages (#373)Roland Pallai
* Make handling of edited messages MSC1849 compatible Server side aggregation replaces `content` with `new_content` in edited messages. The same must be done at client side on incremental updates to keep timeline consistent. As server side aggregations is in use by default from Synapse 1.2.0 this patch fixes a real issue.
2020-03-15Connection: loginWithToken(); connectWithToken() -> assumeIdentity()Kitsune Ral
2020-03-14Connection: minor cleanupKitsune Ral
2020-03-13Connection: support getting the list of login flowsKitsune Ral
The flows themselves are not facilitated in any way (yet).
2020-03-13Merge pull request #346 from quotient-im/aa13q-e2ee-encrypted-msgKitsune Ral
E2EE: implement receiving of the messages
2020-03-12E2EE: Make building E2EE optional. Contributes to #369Alexey Andreev
Signed-off-by: Alexey Andreev <aa13q@ya.ru>