diff options
author | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2021-07-30 08:22:13 +0200 |
---|---|---|
committer | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2021-07-30 08:22:13 +0200 |
commit | 7ee1681d7640b7e7683f7bb40bf768704a48832c (patch) | |
tree | fc91df49a69e5a3d8f4e0d7f0ec6ffb8b8a956f3 | |
parent | 02eac9e9ff573d85677f900288e82473f5296ee3 (diff) | |
download | libquotient-7ee1681d7640b7e7683f7bb40bf768704a48832c.tar.gz libquotient-7ee1681d7640b7e7683f7bb40bf768704a48832c.zip |
Clean up after the previous commit
RoomAliasesEvent is no more even registered (meaning that the library
will load m.room.aliases as unknown state events); quotest code updated
to use historyEdge() instead of timelineEdge().
-rw-r--r-- | lib/events/simplestateevents.h | 1 | ||||
-rw-r--r-- | quotest/quotest.cpp | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/lib/events/simplestateevents.h b/lib/events/simplestateevents.h index 3bac54e6..cf1bfbba 100644 --- a/lib/events/simplestateevents.h +++ b/lib/events/simplestateevents.h @@ -72,5 +72,4 @@ public: QString server() const { return stateKey(); } QStringList aliases() const { return content().value; } }; -REGISTER_EVENT_TYPE(RoomAliasesEvent) } // namespace Quotient diff --git a/quotest/quotest.cpp b/quotest/quotest.cpp index 5646d54d..ec7d4dcb 100644 --- a/quotest/quotest.cpp +++ b/quotest/quotest.cpp @@ -557,7 +557,7 @@ bool TestSuite::checkRedactionOutcome(const QByteArray& thisTest, // redacted at the next sync, or the nearest sync completes with // the unredacted event but the next one brings redaction. auto it = targetRoom->findInTimeline(evtIdToRedact); - if (it == targetRoom->timelineEdge()) + if (it == targetRoom->historyEdge()) return false; // Waiting for the next sync if ((*it)->isRedacted()) { |