aboutsummaryrefslogtreecommitdiff
path: root/lib/events/stateevent.h
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2018-11-14 07:26:31 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2018-11-14 21:56:42 +0900
commit3478e691df49b9c0938220db57b03a9c6fcbec8d (patch)
treee88cfe8f9369d6ef54d62ff46f214891bddd03d5 /lib/events/stateevent.h
parent7ce14ccedc7a5239396e7662da1b2ba45195c271 (diff)
downloadlibquotient-3478e691df49b9c0938220db57b03a9c6fcbec8d.tar.gz
libquotient-3478e691df49b9c0938220db57b03a9c6fcbec8d.zip
Room: fix incorrect handling of state event redactions
Also: use Matrix type instead of internal type id in StateEventKey (Because internal type id maps to the library type system which will not discern between Unknown events and therefore will mix together events of different types in Room::Private::baseState/currentState. The Room code is updated accordingly (bonus: more asserts there).) Closes #255.
Diffstat (limited to 'lib/events/stateevent.h')
-rw-r--r--lib/events/stateevent.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/events/stateevent.h b/lib/events/stateevent.h
index 76c749f5..d50500f2 100644
--- a/lib/events/stateevent.h
+++ b/lib/events/stateevent.h
@@ -42,7 +42,7 @@ namespace QMatrixClient {
* of state in Matrix.
* \sa https://matrix.org/docs/spec/client_server/unstable.html#types-of-room-events
*/
- using StateEventKey = std::pair<Event::Type, QString>;
+ using StateEventKey = std::pair<QString, QString>;
template <typename ContentT>
struct Prev