hc-institute-japan / kizuna

https://kizuna.foundation/en/
Other
32 stars 5 forks source link

Failed messages display as unique messages after refreshing the browser #97

Open davispauljohn opened 3 years ago

davispauljohn commented 3 years ago

Messages which fail to send are displayed as unique messages when the brower is refreshed. One message is displayed per failed send attempt, so if the message fails two times and then succeeds, then three copies of the same message are displayed after reloading the UI.

  1. Type and send a message - Not delivered
  2. Click and hold on message and click resend - Not delivered
  3. Click and hold on message and click resend - Sends successfully
  4. Reload/Refresh the browser (F5) Outcome: Three messages with identical content are displayed, however the message timestamps indicate a different event time.

The duplicate messages display no indication that they were not delivered after the refresh. The recipient did have Kizuna running at the time the messages were sent. Messages before and after this case did send successfully. The recipient's client did not display duplicate messages

Expected behavior: Only messages which send without error should be displayed.

failed-message-duplication-refresh