TelegramMessenger / Telegram-iOS

Telegram-iOS
5.89k stars 1.57k forks source link

Badge shows unread messages, but there are none #645

Open apetrychkovych opened 2 years ago

apetrychkovych commented 2 years ago

Checklist

Description

Badge counter of unread messsages is not gone after reading messages (this is quite random, there's no clear rule when it happens. sometimes it works well and sometimes not), it still shows unread messages.

Expected Behavior

Badge is gone after reaging a message

Actual Behavior

After reading a message and even replying Telegram icon still has red badge with N unread messages.

Steps to Reproduce

  1. Recieve the message
  2. Read it
  3. Exit telegram to see if badge was cleared

Environment

Device: iPhone XR

iOS version: 15.1

App version: 8.2

dynisor commented 2 years ago

Can confirm that I can also reproduce this issue as well. It is quite annoying. 😁

Device: iPhone 11 Pro iOS Version: 15.1 App Version: 8.2


App Version: 8.2.1 seems to have solved it for me on my device

ekumanov commented 2 years ago

I have the same issue.

eladitzhakian commented 2 years ago

Reproduces on my iOS 14.7.1

apetrychkovych commented 2 years ago

Telegram for iOS was updated to 8.2.1 a few hours ago, and I was unable to reproduce this bug so far, so looks promising. Let's see how it goes 🤞🤞🤞

knorrfix commented 2 years ago

On my iPhone the bug is gone away, but I got myself a iPad Air 2020 (iPad OS 15.1) a few days ago and since I installed it I have 8 unread messages. (I updated my iPhone and my iPad a few minutes ago.)

carlosinfante98 commented 2 years ago

I can confirm, this issue is going on for several days. I have an iPhone 11 with iOS Version 15.1

ali-fareed commented 2 years ago

Is there anyone who still has this issue in 8.2.1 or later?

pySilver commented 2 years ago

Its happening to me too. Very unnoying. Eventually unread status gets in sync up until one of my specific contacts messages me again (nothing special about that person as far as I can see)

restlessdesign commented 2 years ago

I think the problem is in one of these files:

https://github.com/TelegramMessenger/Telegram-iOS/blob/2b2d14f53fee10049cd7b9aa963a33acb5108ccf/submodules/TelegramUIPreferences/Sources/RenderedTotalUnreadCount.swift

https://github.com/TelegramMessenger/Telegram-iOS/blob/master/submodules/TelegramUI/Sources/NotificationContainerControllerNode.swift

Pavel-Laukhin commented 2 years ago

8.6.228656 Still have the problem.

BaabakM commented 1 year ago

i have same issue in android version. but when i force close it it disappears after opening again unfortunately it returns some minutes later