Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

duplicate app-icon badge counter to chat's tab-bar-item #2150

Merged
merged 1 commit into from
May 9, 2024

Conversation

r10s
Copy link
Member

@r10s r10s commented Apr 6, 2024

to make it easier to notice new messages,
this PR shows the number of unread messages in the chat's tab-bar item -
and not only on the app-icon on the homescreen.

this is esp. useful as tapping the icon scrolls up now,
giving users and intuitive way to get to the new chats.

both badge counters will show the same number in the same layout.
if notifications are disabled, both counters are hidden
(the badges beside chats stay)

in practise, this feels totally normal and correctly,
this behavior is known from many other apps on iOS.
(i was also trying to show only the number of the active account,
that is more confusing, also in some tiny tests with some ppl.
i also tried other colors, but the default color seems the way to go here)

this also resets the counter on app start,
maybe fixing some rare bugs where the counter is wrong on the app icon

closes #2130

note, that the badge counters are not strictly event driven as they may be updates also when the app is not running by the NSE

@r10s r10s force-pushed the r10s/chats-unread-badge branch 3 times, most recently from 0b6d175 to 3d9d7ac Compare April 6, 2024 22:08
@r10s r10s changed the base branch from add-map to main April 6, 2024 22:09
@r10s r10s marked this pull request as ready for review April 6, 2024 22:09
@r10s r10s force-pushed the r10s/chats-unread-badge branch from 3d9d7ac to 4362392 Compare April 6, 2024 22:20
@r10s r10s requested a review from zeitschlag April 6, 2024 22:30
@r10s r10s added notify enhancement actually in development, user visible enhancement labels Apr 6, 2024
@r10s r10s force-pushed the r10s/chats-unread-badge branch 2 times, most recently from e42140b to dedf1b0 Compare April 6, 2024 22:39
both badge counters will show the same number in the same layout.
if notifications are disabled, both counters are hidden
(the badges beside chats stay)

in practise, this feels totally normal and correctly,
this behavior is known from many other apps on iOS.

this also resets the counter on app start,
maybe fixing some rare bugs where the counter is wrong on the app icon
@r10s r10s force-pushed the r10s/chats-unread-badge branch from dedf1b0 to cdd6b6a Compare April 21, 2024 19:35
Copy link
Collaborator

@zeitschlag zeitschlag left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@r10s r10s merged commit 8032e1f into main May 9, 2024
1 check passed
@r10s r10s deleted the r10s/chats-unread-badge branch May 9, 2024 12:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement actually in development, user visible enhancement notify
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

show number of unread messages on "Chats" icon in tabbar
2 participants