Open td-famedly opened 1 month ago
Not sure. Currently in FluffyChat I display the current sending event in the chat list with a loading indicator which makes it clear that in this room I currently try to send a message. This would be lost after merging this.
otoh I have checked telegram ~and whatsapp~, both seem to only set the last even in chats list once sending was successful. My initial changes just reverted the lastEvent to the next possible lastEvent in the room timeline, but the team suggested just not to set the last event until sent which is much simpler.
otoh I have checked telegram and whatsapp, both seem to only set the last even in chats list once sending was successful.
I can reproduce on WhatsApp (iOS) that the message is already set as last event even when it is not sent yet. Sent a message in airplane mode and can see it in the chat list. Deleting it changes the last event to "You have deleted this message".
otoh I have checked telegram and whatsapp, both seem to only set the last even in chats list once sending was successful.
I can reproduce on WhatsApp (iOS) that the message is already set as last event even when it is not sent yet. Sent a message in airplane mode and can see it in the chat list. Deleting it changes the last event to "You have deleted this message".
I tried to send a huge file, closed and opened the app which caused sending to fail. Then deleted the errored file send, the last event then was the previous event, not "You have deleted this message".
Telegram on the other hand does this for every message, possibly due to lack of chat list last event in sending state preview feature.
Fixes: https://github.com/famedly/product-management/issues/1684