diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2017-09-05 12:09:29 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2017-09-05 12:09:29 +0900 |
commit | d1fd237d8f917d393a2a8491abc1554abd398085 (patch) | |
tree | 05268928566fc81f1ccfa6dbce01ea842e241c43 | |
parent | 071856d31995f665ee9219b3e05510ab83f9f4d8 (diff) | |
download | libquotient-d1fd237d8f917d393a2a8491abc1554abd398085.tar.gz libquotient-d1fd237d8f917d393a2a8491abc1554abd398085.zip |
Include unread/notification counters to the cache
-rw-r--r-- | room.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -938,6 +938,12 @@ QJsonObject Room::Private::toJson() const { QJsonObject result; result.insert("state", roomStateObj); + + QJsonObject unreadNotificationsObj; + unreadNotificationsObj.insert("highlight_count", highlightCount); + unreadNotificationsObj.insert("notification_count", notificationCount); + result.insert("unread_notifications", unreadNotificationsObj); + return result; } |