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> { ...@@ -75,10 +75,11 @@ public class MessageRenderer extends AbstractRenderer<Message> {
} }
switch (object.getSyncState()) { switch (object.getSyncState()) {
case SyncState.NOT_SYNCED:
case SyncState.SYNCING: case SyncState.SYNCING:
textView.setText(R.string.sending); textView.setText(R.string.sending);
break; break;
case SyncState.NOT_SYNCED:
textView.setText(R.string.failed_to_sync);
default: default:
textView.setText(DateTime.fromEpocMs(object.getTimestamp(), DateTime.Format.TIME)); textView.setText(DateTime.fromEpocMs(object.getTimestamp(), DateTime.Format.TIME));
break; break;
......
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
<string name="users_of_room_title">Members List</string> <string name="users_of_room_title">Members List</string>
<string name="fmt_room_user_count">Total: %,d users</string> <string name="fmt_room_user_count">Total: %,d users</string>
<string name="sending">Sending…</string> <string name="sending">Sending…</string>
<string name="failed_to_sync">Failed to send!</string>
<string name="resend">Resend</string> <string name="resend">Resend</string>
<string name="discard">Discard</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