prose-im / prose-core-client

Prose core XMPP client manager & protocols.
https://prose.org
Mozilla Public License 2.0
23 stars 3 forks source link

Offline Mode #38

Open nesium opened 10 months ago

nesium commented 10 months ago

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 commented 10 months ago

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 commented 10 months ago

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.