Skip to content
This repository has been archived by the owner on Jul 25, 2024. It is now read-only.

Commit

Permalink
Show messages even when offline.
Browse files Browse the repository at this point in the history
  • Loading branch information
nitish1211 committed Mar 1, 2017
1 parent 63c7217 commit 23c47ee
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2391,6 +2391,9 @@ public void handleMessage(android.os.Message msg) {
} else {
displayChatBox(false);
displayFAB(true);
//Displays old offline messages
if(!networkStatus.equals(Constants.STATUS_CONNECTED))
onReadyToDisplay(true);
networkStatus = Constants.STATUS_NOT_CONNECTED;
Snackbar.make(coordinatorLayout, R.string.no_connection, Snackbar.LENGTH_INDEFINITE).show();
}
Expand Down

0 comments on commit 23c47ee

Please sign in to comment.