aboutsummaryrefslogtreecommitdiff
path: root/events
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2018-03-05 21:07:20 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2018-03-05 21:07:20 +0900
commitbc10ecd90b0bda973658db419bca88923b436ff3 (patch)
tree95d32fe83cd532815c6f6316e7c5ab3c9e73d4b7 /events
parent1c5b7f8a1c6d82a612f4a2a74eeb644a40370ca5 (diff)
parent63efbe26f37819048bb236d4839cc5f25c102785 (diff)
downloadlibquotient-bc10ecd90b0bda973658db419bca88923b436ff3.tar.gz
libquotient-bc10ecd90b0bda973658db419bca88923b436ff3.zip
Merge branch 'kitsune-fully-read-marker'
Diffstat (limited to 'events')
-rw-r--r--events/receiptevent.cpp6
-rw-r--r--events/receiptevent.h2
2 files changed, 0 insertions, 8 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();
}
diff --git a/events/receiptevent.h b/events/receiptevent.h
index 92dace82..5b99ae3f 100644
--- a/events/receiptevent.h
+++ b/events/receiptevent.h
@@ -41,12 +41,10 @@ namespace QMatrixClient
EventsWithReceipts eventsWithReceipts() const
{ return _eventsWithReceipts; }
- bool unreadMessages() const { return _unreadMessages; }
static constexpr const char* const TypeId = "m.receipt";
private:
EventsWithReceipts _eventsWithReceipts;
- bool _unreadMessages; // Spec extension for caching purposes
};
} // namespace QMatrixClient