Skip to content

Commit

Permalink
Android UI Kit v2.4.0-1
Browse files Browse the repository at this point in the history
  • Loading branch information
darshanbhanushali committed Aug 16, 2021
1 parent 985e00b commit 5fe2723
Showing 1 changed file with 16 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -319,12 +319,22 @@ public void setDeliveredReceipts(MessageReceipt deliveryReceipts){

public void setTypingIndicator(TypingIndicator typingIndicator, boolean b) {
for(Conversation conversation : filterConversationList) {
if (conversation.getConversationId()
.contains(typingIndicator.getReceiverId())) {
this.typingIndicator = typingIndicator;
isTypingVisible = b;
int index= filterConversationList.indexOf(conversation);
notifyItemChanged(index);
if (typingIndicator.getReceiverType().equalsIgnoreCase(CometChatConstants.RECEIVER_TYPE_USER)) {
if (conversation.getConversationId()
.contains(typingIndicator.getSender().getUid())) {
this.typingIndicator = typingIndicator;
isTypingVisible = b;
int index = filterConversationList.indexOf(conversation);
notifyItemChanged(index);
}
} else {
if (conversation.getConversationId()
.contains(typingIndicator.getReceiverId())) {
this.typingIndicator = typingIndicator;
isTypingVisible = b;
int index = filterConversationList.indexOf(conversation);
notifyItemChanged(index);
}
}
}
}
Expand Down

0 comments on commit 5fe2723

Please sign in to comment.