element-hq / element-x-ios

Next generation Matrix client for iOS built with SwiftUI on top of matrix-rust-sdk.
https://element.io/labs/element-x
Apache License 2.0
365 stars 75 forks source link

App icon shows unread messages although there are none #2993

Open kostrykin opened 3 days ago

kostrykin commented 3 days ago

Steps to reproduce

The app icon shows that there are unread messages: IMG_2801

However, after opening the app, there are no unread messages: IMG_2800

Restarting the app does not solve issue.

I cannot send logs because nothing happens when I shake the phone with the app open.

Outcome

What did you expect?

I expect the app icon to stop indicating falsely that there were unread messages.

What happened instead?

The app icon keeps indicating that there are two unread messages.

Your phone model

iPhone 13 mini

Operating system version

iOS 17.5.1

Application version

Version 1.6.11 (112)

Homeserver

matrix.org

Will you send logs?

No

pixlwave commented 2 days ago

@kostrykin Do you see unread messages if you use the old app, Element Web or another matrix client?

kostrykin commented 2 days ago

@pixlwave I see unread messages when using the old Element for iOS, but not when using Element on the desktop (macOS).

pixlwave commented 2 days ago

Ok, and if you read all of those does the EX badge drop to zero?

kostrykin commented 1 day ago

There are no unread messages which I could read when I open the app. It’s only shown on the app icon. So I guess the answer is no.

morguldir commented 1 day ago

Same as https://github.com/element-hq/element-x-ios/issues/2066, basically the counts are from your server and synapse still rarely returns an incorrect badge count

Element Web doesn’t use push so it won't be affected

pixlwave commented 1 day ago

There are no unread messages which I could read when I open the app. It’s only shown on the app icon. So I guess the answer is no.

On the old iOS app?

kostrykin commented 1 day ago

There are no unread messages which I could read when I open the app. It’s only shown on the app icon. So I guess the answer is no.

On the old iOS app?

Yes, it’s the same on both iOS apps. Only reason that I switched to the new one was that I hoped it would fix the wrong badges.