diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2017-09-21 20:44:45 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2017-09-21 20:44:45 +0900 |
commit | 9cc3f82026c64862bae6a535d2b883b8cf97fba0 (patch) | |
tree | 8d2cb44133edc2237278025e2260f88595fa9971 /events/receiptevent.cpp | |
parent | 16fd53ff0be54531661e9e0cd27c4f893295b62e (diff) | |
parent | f936182135d166e5dea734775e24cabd4b763c64 (diff) | |
download | libquotient-9cc3f82026c64862bae6a535d2b883b8cf97fba0.tar.gz libquotient-9cc3f82026c64862bae6a535d2b883b8cf97fba0.zip |
Merge branch 'master' into kitsune-invite-kick
Diffstat (limited to 'events/receiptevent.cpp')
-rw-r--r-- | events/receiptevent.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/events/receiptevent.cpp b/events/receiptevent.cpp index e3478cf1..3d6be9f1 100644 --- a/events/receiptevent.cpp +++ b/events/receiptevent.cpp @@ -46,7 +46,7 @@ ReceiptEvent::ReceiptEvent(const QJsonObject& obj) { Q_ASSERT(obj["type"].toString() == jsonType); - const QJsonObject contents = obj["content"].toObject(); + const QJsonObject contents = contentJson(); _eventsWithReceipts.reserve(static_cast<size_t>(contents.size())); for( auto eventIt = contents.begin(); eventIt != contents.end(); ++eventIt ) { @@ -66,5 +66,6 @@ ReceiptEvent::ReceiptEvent(const QJsonObject& obj) } _eventsWithReceipts.push_back({eventIt.key(), receipts}); } + _unreadMessages = obj["x-qmatrixclient.unread_messages"].toBool(); } |