Closed bizzbyster closed 5 years ago
messageRepository.save(message.copy(synced = true))
is called after successful API call, and the colour of the text depends on this property.
When the retry service updates this property and saved to DB, maybe the UI is not picking up these changes. That still doesn't explain why the newly sent messages after reconnecting are Grey.
The messages remained grey (after reconnecting the network on the device) even after those messages were seen as having been uploaded from inside a web client running on another machine.
The issue appears to be that even after the resend of the failed messages that were composed while there was no network have been uploaded to the server, the messages in the conversation window do not get updated to black text -- the messages are still grey.
Lastly, when i send a new message, it goes through just fine but it is also painted grey in the conversation window as if it is unsent when in fact it is getting sent.
Incidentally, when i go to chatrooms and back into the room, the messages are painted as black as one would expect.