mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 19:08:58 +03:00
Inform Qt that loud notifications changed
This commit is contained in:
parent
863eaa1910
commit
f03c506bdf
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ CommunitiesModel::CommunitiesModel(QObject *parent)
|
||||||
connect(ChatPage::instance(), &ChatPage::unreadMessages, this, [this](int) {
|
connect(ChatPage::instance(), &ChatPage::unreadMessages, this, [this](int) {
|
||||||
// Simply updating every space is easier than tracking which ones need updated.
|
// Simply updating every space is easier than tracking which ones need updated.
|
||||||
if (!spaces_.empty())
|
if (!spaces_.empty())
|
||||||
emit dataChanged(index(2, 0), index(spaces_.size() + 2, 0), {Roles::UnreadMessages});
|
emit dataChanged(index(2, 0), index(spaces_.size() + 2, 0), {Roles::UnreadMessages, Roles::HasLoudNotification});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue