fe8a58c5db
Fixes #11041 Fixes the bug where going to a muted channel with a mention doesn't mark it as read. This was because the QML doesn't call mark as read when a channel doesn't have unviewed messages. That was because our Nim code put 0 as unviewedMessageCount when a channel is muted. I changed it so that channels always have the value from status-go. No more conditions on the Nim side. Now the condition is on the QML side. So we hide the badge in QML instead. That also means that showing the number of unviewed message, even in a muted channel works. I also fixed a bug where we counted muted messages on app restart for the normal badge. Usually it didn't cause issues, because it's rare that you had messages in a muted channel and nothing else. You'd also have unread messages in an unmuted channel. so you'd go there, read it, and it would then update the parent badge. While testing this issue, I discovered that we in fact count muted channels for the parent badge. So i fixed it in this one too. So while chats don't have any Nim code for muted chats, sections do, because status-go doesn't really give us that information. |
||
---|---|---|
.. | ||
StatusQ | ||
app | ||
fonts | ||
i18n | ||
imports | ||
include/StatusDesktop/Monitoring | ||
src/StatusDesktop/Monitoring | ||
MonitoringSources.cmake | ||
generate-rcc.go | ||
main.qml | ||
nim-status-client.pro |