Inform Qt that loud notifications changed

This commit is contained in:
Loren Burkholder 2022-04-23 22:58:44 -04:00
parent 863eaa1910
commit f03c506bdf

View file

@ -20,7 +20,7 @@ CommunitiesModel::CommunitiesModel(QObject *parent)
connect(ChatPage::instance(), &ChatPage::unreadMessages, this, [this](int) {
// Simply updating every space is easier than tracking which ones need updated.
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});
});
}