Clear notifications when event is read

This commit is contained in:
Nicolas Werner 2020-04-09 20:52:50 +02:00
parent 537cc966cc
commit 2022775dd0
7 changed files with 95 additions and 3 deletions

View file

@ -645,6 +645,11 @@ ChatPage::bootstrap(QString userid, QString homeserver, QString token)
connect(
cache::client(), &Cache::roomReadStatus, room_list_, &RoomList::updateReadStatus);
connect(cache::client(),
&Cache::removeNotification,
&notificationsManager,
&NotificationsManager::removeNotification);
const bool isInitialized = cache::isInitialized();
const bool isValid = cache::isFormatValid();