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

Offline Mode #38

Open
4 tasks
nesium opened this issue Jan 14, 2024 · 2 comments
Open
4 tasks

Offline Mode #38

nesium opened this issue Jan 14, 2024 · 2 comments

Comments

@nesium
Copy link
Contributor

nesium commented Jan 14, 2024

  • Store bookmarks in DB
  • Store room info in DB
  • Allow users to send messages when room is (temporarily) offline (i.e. cache message then send automatically upon reconnection)
  • Provide method to determine online connectivity

Questions:
What happens to a cached message when the room comes back online again but has changed, i.e. from a Private Channel to a Public Channel?

@valeriansaliou
Copy link
Member

Should we purge the cached messages in that case, and reload from MAM? This shouldn’t happen too often, I’m fine with showing a spinner on a blank conversation.

@nesium
Copy link
Contributor Author

nesium commented Jan 16, 2024

Oh, I wasn't clear in my initial description. With "cached message" in this case I meant an unsent, pending message by a user waiting to be sent automatically as soon as the application comes online again.

In this scenario it could happen that a private message leaks into a public channel. But I'm with you there that this should happen rarely.

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

No branches or pull requests

2 participants