Skip to content

Commit

Permalink
commit 2.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
shaifuWD15 committed Dec 30, 2019
1 parent d66a0f8 commit 7dcb7c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions webdocchat/src/main/java/com/webdocchat/WebDocChat.java
Original file line number Diff line number Diff line change
Expand Up @@ -188,12 +188,12 @@ public void onDataChange(@NonNull DataSnapshot dataSnapshot) {
String lastMessage = dataSnapshot.child("message").getValue().toString();
String lastMessageType = dataSnapshot.child("type").getValue().toString();

if(!Global.lastMessageType.equalsIgnoreCase("typing"))
if(!lastMessageType.equalsIgnoreCase("typing"))
{
Global.lastMessage = lastMessage;
Global.lastMessageType = lastMessageType;
}

reference.getReference().child("Users").child(senderAppName).child(senderEmail).child("LastMessage").child(receiverEmail).updateChildren(hashMap);
}

Expand Down

0 comments on commit 7dcb7c4

Please sign in to comment.