dc9951cfb0
* fix(badge): fix missing badge on the Chat section * fix(unread): fix unread count not incrementing when the chat is active but app is unfocused Fixes #16098 The problem was that we were marking the message as read because the chat kept scrolling, even if the app was in the background. I fixed that by only marking as read if the app is active. I added a Connections to the active property of the Applicaiton too to mark as read when the app comes back active. I also removed a condition that prevented the Unread bar appearing in that condition. Now, when a message is sent to the active chat, but the app is not in focus, the red dot appears, as well as the badges. Then when the app comes active, it is marked as read, but the unread messages line is shown to show when is the last time the user saw messages. This is similar to what Discord has. |
||
---|---|---|
.. | ||
activitycenter | ||
adaptors | ||
panels | ||
AppMain.qml | ||
AppSearch.qml | ||
Popups.qml | ||
SplashScreen.qml | ||
StatusTrayIcon.qml | ||
ToastsManager.qml | ||
qmldir |