aboutsummaryrefslogtreecommitdiff
path: root/events/receiptevent.cpp
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2018-03-31 13:20:52 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2018-03-31 13:20:52 +0900
commit44764f015f25db307811f2969c117b37133fc676 (patch)
treee3d1a5c79886336c07fe5d9e5114d3b8d6fe6043 /events/receiptevent.cpp
parenta95618af600c8c72c15ece48682ee6260de27aff (diff)
parente7868adbf5b275f66529fb2dae323ed8aeb69e05 (diff)
downloadlibquotient-44764f015f25db307811f2969c117b37133fc676.tar.gz
libquotient-44764f015f25db307811f2969c117b37133fc676.zip
Merge branch 'master' into kitsune-gtad
Diffstat (limited to 'events/receiptevent.cpp')
-rw-r--r--events/receiptevent.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/events/receiptevent.cpp b/events/receiptevent.cpp
index 3c4d34ee..7555db82 100644
--- a/events/receiptevent.cpp
+++ b/events/receiptevent.cpp
@@ -66,11 +66,5 @@ ReceiptEvent::ReceiptEvent(const QJsonObject& obj)
}
_eventsWithReceipts.push_back({eventIt.key(), std::move(receipts)});
}
- static const auto UnreadMsgsKey =
- QStringLiteral("x-qmatrixclient.unread_messages");
- if (contents.contains(UnreadMsgsKey))
- _unreadMessages = contents["x-qmatrixclient.unread_messages"].toBool();
- else
- _unreadMessages = obj["x-qmatrixclient.unread_messages"].toBool();
}