status-desktop/ui/app/mainui
Jonathan Rainville dc9951cfb0
Fix unread badge on the chat section button + fix unread count not being counted when the chat is active and the app is not in focus (#16851)
* 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.
2024-12-04 10:00:34 -05:00
..
activitycenter ActivityNotificationMessage/Chat.RootStore: remove dependency on nim model's onItemChanged signal 2024-11-14 15:13:24 +01:00
adaptors ContactDetails decomposed into smaller, more specialized components 2024-11-29 17:46:50 +01:00
panels [Style] remove legacy Style and its themes 2024-10-22 15:54:31 +02:00
AppMain.qml Fix unread badge on the chat section button + fix unread count not being counted when the chat is active and the app is not in focus (#16851) 2024-12-04 10:00:34 -05:00
AppSearch.qml UtilsStore creaed, isChatKey method moved 2024-10-28 23:16:31 +01:00
Popups.qml ContactDetails decomposed into smaller, more specialized components 2024-11-29 17:46:50 +01:00
SplashScreen.qml [Style] remove legacy Style and its themes 2024-10-22 15:54:31 +02:00
StatusTrayIcon.qml [Style] remove legacy Style and its themes 2024-10-22 15:54:31 +02:00
ToastsManager.qml feat(ProfileShowcase): Align UI save flow according to backend response 2024-03-20 09:31:34 +01:00
qmldir fix(chat): chat input accepts DnD for blocked users 2024-10-10 10:33:13 +03:00