Skip to content

Commit

Permalink
Merge pull request #2349 from acterglobal/ben-fix-badge-counter
Browse files Browse the repository at this point in the history
Fix badge counter
  • Loading branch information
gnunicorn authored Nov 5, 2024
2 parents 4d77a69 + a2c04b2 commit ded72ce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .changes/disable-badge-counter.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Fix: don't show badge counter until the user can also clear that counter
3 changes: 2 additions & 1 deletion packages/acter_notifify/lib/util.dart
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ Future<void> removeNotificationsForRoom(String roomId) async {

Future<void> updateBadgeCount(int newCount) async {
if (await AppBadgePlus.isSupported()) {
await AppBadgePlus.updateBadge(newCount);
await AppBadgePlus.updateBadge(0);
// await AppBadgePlus.updateBadge(newCount);
}
}

Expand Down

0 comments on commit ded72ce

Please sign in to comment.