67P / hyperchannel

Kosmos Chat for the Web
Mozilla Public License 2.0
20 stars 3 forks source link

Pending status for outgoing XMPP messages #244

Closed raucao closed 3 years ago

raucao commented 3 years ago

This marks outgoing messages as pending, and then confirms that they were sent when received back from the room. It also fixes the problem of one's own messages missing in the chat history that is sent by XMPP servers upon joining a channel.

Note: will probably fail with DMs (#242), because we would need message carbons for those. Hence the WIP, until DMs are merged. Fixed for DMs.


P.S.: I think we'll want to have a timeout for showing messages as pending in the UI later on. Currently, there's a bit of a flash from switching the text color after a split second. And we can also add an actual text marker or other indicator, after a few seconds of it not having confirmed.