aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-12-13Room::postFile(): minor refactoringKitsune Ral
2019-12-13quotest: cleanupKitsune Ral
2019-12-12.travis.yml: use correct environment variablesKitsune Ral
It should be TEST_USER and TEST_PWD, not QMC_* legacy stuff.
2019-12-12BaseJob::initiate(): fix nullptr dereferencingKitsune Ral
2019-12-12Room::downloadFile: minor cleanupKitsune Ral
2019-12-12BaseJob: prepare() -> initiate() + refactoring around itKitsune Ral
* BaseJob::initiate() now calls ConnectionData::submit() without relying on Connection to do that * ConnectionData::submit() is now the only site where a job enters Pending state * No more shortcuts to BaseJob::sendRequest(), even retries are sent through the ConnectionData submission queue * Additional validation in BaseJob::initiate() that the request data device is actually open (because QtNetwork API officially requires that, even if you can get away passing a closed QBuffer to it)
2019-12-12Connection::uploadFile/Content(): refactoring around QIODevice::open()Kitsune Ral
No more "The file is already open" log messages.
2019-12-12Move FileError definition from DownloadFileJob to BaseJobKitsune Ral
Will use it in BaseJob in a later commit.
2019-12-12Room::fileNameToDownload(): fix a typo in a check on WindowsKitsune Ral
As a result of the typo, the extension was never attached to returned file names if there was none originally.
2019-12-12RequestData: optimise fromData() and preopen the bufferKitsune Ral
It was just a coincidence that QBuffer allowed reading from it without being isReadable() at the moment of starting a job.
2019-12-11Merge branch 'kitsune-better-upgrade-ux'Kitsune Ral
2019-12-11BaseJob::StatusCode: offset first error from ErrorLevelKitsune Ral
Q_ENUM seems to resolve int to the first enum identifier with that value so NetworkError == ErrorLevel looks confusing in logs.
2019-12-11Pass action scope to Room::setTagsKitsune Ral
The tags can now be applied not only to the current room but also propagated to its predecessors and successors.
2019-12-09Room::creation() and Room::tombstone()Kitsune Ral
2019-12-09Room::predecessor() and Room::successor()Kitsune Ral
2019-12-09RoomEvent::timestamp() -> originTimestamp()Kitsune Ral
The previous name is still available but deprecated.
2019-12-09Code cleanupKitsune Ral
2019-12-09Room: more doc-commentsKitsune Ral
2019-12-09Initialise read marker if none is found in the whole timelineKitsune Ral
Closes #361.
2019-12-09Merge branch 'kitsune-look-further-for-redactions'Kitsune Ral
2019-12-08Merge pull request #365 from quotient-im/aa13q-msc1954-drop-prev-contentKitsune Ral
MSC1954: Remove prev_content from the essential keys list
2019-12-08Room::addNewMessageEvents: search the whole sync batch for events toKitsune Ral
redact It seems that sometimes redactions may precede the unredacted events within the same sync batch.
2019-12-08ConnectionData: stop the timer on destructionKitsune Ral
...to prevent from trying to send requests after closing the connection.
2019-12-08Remove extraneous qualificationKitsune Ral
2019-12-06MSC1954: Remove prev_content from the essential keys listAlexey Andreyev
Fixes #318
2019-12-05Merge pull request #363 from quotient-im/aa13q-room-highlightingKitsune Ral
Fix room highlighting for names with hashtag
2019-11-30Fix room highlighting for names with hashtagAlexey Andreyev
Fixes #359
2019-11-19BaseJob: Don't send accessToken if not needed; send again on 401Kitsune Ral
The first part closes #358; the second part is a workaround for non-standard cases when endpoints without security by the spec turn out to be secured (in particular, the case of authenticating media servers).
2019-11-19Add LGTM badgeKitsune Ral
2019-11-10CleanupKitsune Ral
2019-11-10makeRedacted: fix code formattingKitsune Ral
2019-11-02Add LGTM supportKitsune Ral
See https://lgtm.com
2019-11-02Compatibility with Qt 5.14Kitsune Ral
2019-11-01Merge branch 'kitsune-std-optional2'Kitsune Ral
2019-11-01Omittable: Add direct-list-initialising operator=; documentKitsune Ral
See the change in connection.cpp for the example of usage. Also: removed static_asserts: the first one is provided by std::optional, and the second one is only relevant to edit().
2019-11-01Reinstate Omittable<>::omitted (deprecated)Kitsune Ral
To ease on back-compatibility.
2019-11-01Merge branch 'kitsune-std-optional'Kitsune Ral
2019-11-01Omittable: get rid of value()Kitsune Ral
Xcode 10 doesn't have it, and value() is not quite fitting mostly-exceptionless Quotient anyway.
2019-11-01Derive Omittable<> from std::optional<>Kitsune Ral
That breaks API all over the place but: 1. The fixes are trivial. 2. More of std:: is used instead of home-baking the same stuff.
2019-10-23Remove the old source fileKitsune Ral
2019-10-22Merge branch 'kitsune-quotest3'Kitsune Ral
2019-10-21Quotest: more work on test invocationKitsune Ral
Tests should be private slots, not public slots; and they are invoked through a QueuedConnection so that both sync and async tests could be processed uniformly with clear code.
2019-10-21Quotest: use clog instead of coutKitsune Ral
Because cout is not synchronised with stderr and the library's debug printing is not aligned with that from quotest. qDebug()/qWarn() would probably be even better, for consistency; but require switching from std::string to QString.
2019-10-21Quotest: derive TestManager from QCoreApplicationKitsune Ral
Also: joining the test room didn't survive being a test in its own right and has been reverted to be a part of setupAndRun().
2019-10-21Connection: record sync timeout; suspend sync before logoutKitsune Ral
This is mostly internal but clients may see fewer spurious sync failures upon logging out.
2019-10-21Connection: make syncLoop() reentrantKitsune Ral
...in the sense that you can call it twice and expect the second invocation to be gracefully ignored rather than two loops conflicting with each other.
2019-10-21Merge branch 'kitsune-update-docs'Kitsune Ral
2019-10-21Merge branch 'kitsune-quotest2'Kitsune Ral
2019-10-21ConnectionData: fix read-after-free in clearing the job queueKitsune Ral
2019-10-21tests/CMakeLists.txt: QMC -> Quotient; add Qt5::Test to depsKitsune Ral