aboutsummaryrefslogtreecommitdiff
path: root/events
diff options
context:
space:
mode:
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