Skip to content

Commit

Permalink
Reply preview now updates when the message is edited
Browse files Browse the repository at this point in the history
  • Loading branch information
Yashar committed Jan 31, 2021
1 parent 66148aa commit 048ccbe
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions TMessagesProj/src/main/java/org/telegram/ui/ChatActivity.java
Expand Up @@ -15358,6 +15358,15 @@ private void replaceMessageObjects(ArrayList<MessageObject> messageObjects, int
}
}
}

for (int c = 0; c < messages.size(); c++) {
if (messages.get(c).replyMessageObject != null && messageObject.equals(messages.get(c).replyMessageObject)) {
messages.get(c).replyMessageObject = messageObject;
messages.get(c).forceUpdate = true;

chatAdapter.updateRowAtPosition(chatAdapter.messagesStartRow + c);
}
}
}
if (newGroups != null) {
for (int b = 0; b < newGroups.size(); b++) {
Expand Down

0 comments on commit 048ccbe

Please sign in to comment.