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

Total count of unread messages from all unmuted chats #35

Closed
vkryl opened this issue Feb 4, 2018 · 1 comment
Closed

Total count of unread messages from all unmuted chats #35

vkryl opened this issue Feb 4, 2018 · 1 comment

Comments

@vkryl
Copy link
Contributor

vkryl commented Feb 4, 2018

For now, the only option to get such value is to download all chats on application start and recalculate the value on updateChatReadInbox, updateNotificationSettings, updateMessagesDeleted, etc.

Would be much better if there would be an integer option unread_count that would be automatically managed by TDLib and updated, when there's any change.

Such value, for example, can be used for drawing a badge near application icon in the system launcher on Android.

@levlam
Copy link
Contributor

levlam commented Mar 19, 2018

Update updateUnreadMessageCount was added in TDLib 1.2.0.

@levlam levlam closed this as completed Mar 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants