diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2016-09-13 22:34:10 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2016-09-14 09:57:14 +0900 |
commit | b3ffe9195f1b018a8c8b7503ee4687d978ea4eab (patch) | |
tree | 1e7dce7b103e672f44742663da76a3d462ffdbee /events | |
parent | c0ddd658bb3e9035eb701c60ea1c82eb6b53114c (diff) | |
download | libquotient-b3ffe9195f1b018a8c8b7503ee4687d978ea4eab.tar.gz libquotient-b3ffe9195f1b018a8c8b7503ee4687d978ea4eab.zip |
Don't search for event_id and origin_server_ts in m.receipt events
Diffstat (limited to 'events')
-rw-r--r-- | events/event.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/events/event.cpp b/events/event.cpp index 95084ddb..55114e6b 100644 --- a/events/event.cpp +++ b/events/event.cpp @@ -109,7 +109,9 @@ bool Event::parseJson(const QJsonObject& obj) { d->originalJson = QString::fromUtf8(QJsonDocument(obj).toJson()); bool correct = (d->type != EventType::Unknown); - if ( d->type != EventType::Unknown && d->type != EventType::Typing ) + if ( d->type != EventType::Unknown && + d->type != EventType::Typing && + d->type != EventType::Receipt ) { if( obj.contains("event_id") ) { |