From b3ffe9195f1b018a8c8b7503ee4687d978ea4eab Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Tue, 13 Sep 2016 22:34:10 +0900 Subject: Don't search for event_id and origin_server_ts in m.receipt events --- events/event.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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") ) { -- cgit v1.2.3