Commit 18a4ea4d authored by Filipe de Lima Brito's avatar Filipe de Lima Brito

Handle Unsynced messages

parent 371eaf41
......@@ -75,10 +75,11 @@ public class MessageRenderer extends AbstractRenderer<Message> {
}
switch (object.getSyncState()) {
case SyncState.NOT_SYNCED:
case SyncState.SYNCING:
textView.setText(R.string.sending);
break;
case SyncState.NOT_SYNCED:
textView.setText(R.string.failed_to_sync);
default:
textView.setText(DateTime.fromEpocMs(object.getTimestamp(), DateTime.Format.TIME));
break;
......
......@@ -16,6 +16,7 @@
<string name="users_of_room_title">Members List</string>
<string name="fmt_room_user_count">Total: %,d users</string>
<string name="sending">Sending…</string>
<string name="failed_to_sync">Failed to send!</string>
<string name="resend">Resend</string>
<string name="discard">Discard</string>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment