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

WIP: chat-history: Notify visible messages to tdlib #485

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

melix99
Copy link
Collaborator

@melix99 melix99 commented Feb 23, 2023

Fixes #73.
Supersedes #286.

  • Implement SponsoredMessage handling
  • Notify about opened chats too and remove the "force_read" param in "view_messages"
  • Test extensively
  • Explain the little hackyness (e.g. the delay)
  • Remove debug calls

This is needed for vairous things, like ensuring that the message cache
is handled correctly (tdlib can remove old messages from the cache for
us) and to also get additional updates, which we'll surely need at some
point.
We finally handle chat opening/closing and we also track visible
messages, so this should be enough for a complete correct message cache
management.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Tell TDLib when unread messages are being read by the user
1 participant