aboutsummaryrefslogtreecommitdiff
path: root/lib/room.cpp
diff options
context:
space:
mode:
authorAlexey Rusakov <Kitsune-Ral@users.sf.net>2021-08-01 17:47:56 +0200
committerAlexey Rusakov <Kitsune-Ral@users.sf.net>2021-08-01 17:47:56 +0200
commitb17867c2b74916055adbc158cdf6437b27bceb14 (patch)
treec195cbd76150dd1de37bb9f33d629b6d9738e793 /lib/room.cpp
parente4a8251d90c2e9f2847366085b3a2897a2d02201 (diff)
downloadlibquotient-b17867c2b74916055adbc158cdf6437b27bceb14.tar.gz
libquotient-b17867c2b74916055adbc158cdf6437b27bceb14.zip
Room::setDisplayed(): Don't reset unread counters
Closes #489.
Diffstat (limited to 'lib/room.cpp')
-rw-r--r--lib/room.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/room.cpp b/lib/room.cpp
index 7242c32e..029ff786 100644
--- a/lib/room.cpp
+++ b/lib/room.cpp
@@ -943,11 +943,8 @@ void Room::setDisplayed(bool displayed)
d->displayed = displayed;
emit displayedChanged(displayed);
- if (displayed) {
- resetHighlightCount();
- resetNotificationCount();
+ if (displayed)
d->getAllMembers();
- }
}
QString Room::firstDisplayedEventId() const { return d->firstDisplayedEventId; }