diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2019-02-15 15:45:18 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2019-02-15 15:45:18 +0900 |
commit | 5460bf4024999b78fb3837ffc14ca818a71dd4dc (patch) | |
tree | b9e5c2a627e64a0b57aa8f0e28d709af7f7445a7 /lib | |
parent | ac7d2ad8b0942cc465c0d340f159cb0b343008ab (diff) | |
download | libquotient-5460bf4024999b78fb3837ffc14ca818a71dd4dc.tar.gz libquotient-5460bf4024999b78fb3837ffc14ca818a71dd4dc.zip |
Use Changes enum properly
Don't use distinct items for each type of event; only for repeated/
combinable ones.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/room.cpp | 3 | ||||
-rw-r--r-- | lib/room.h | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/lib/room.cpp b/lib/room.cpp index 580d04b8..23fb19db 100644 --- a/lib/room.cpp +++ b/lib/room.cpp @@ -2173,10 +2173,11 @@ Room::Changes Room::processStateEvent(const RoomEvent& e) } , [this] (const EncryptionEvent&) { emit encryption(); // It can only be done once, so emit it here. - return EncryptionOn; + return OtherChange; } , [this] (const RoomTombstoneEvent& evt) { emit upgraded(evt.serverMessage(), evt.successorRoomId()); + return OtherChange; } ); } @@ -128,7 +128,7 @@ namespace QMatrixClient JoinStateChange = 0x20, TagsChange = 0x40, MembersChange = 0x80, - EncryptionOn = 0x100, + /*blank*/ = 0x100, AccountDataChange = 0x200, SummaryChange = 0x400, ReadMarkerChange = 0x800, |