Skip to content

Commit

Permalink
allow to edit any normal message with text, not only "text viewtype"
Browse files Browse the repository at this point in the history
  • Loading branch information
adbenitez committed Feb 20, 2025
1 parent f015fd2 commit 2c81ba0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ static boolean canReplyToMsg(DcMsg dcMsg) {
}

static boolean canEditMsg(DcMsg dcMsg) {
return dcMsg.isOutgoing() && !dcMsg.isInfo() && dcMsg.getType() == DcMsg.DC_MSG_TEXT;
return dcMsg.isOutgoing() && !dcMsg.isInfo() && dcMsg.getType() != DcMsg.DC_MSG_VIDEOCHAT_INVITATION && !dcMsg.getText().isEmpty();
}

public void handleClearChat() {
Expand Down

0 comments on commit 2c81ba0

Please sign in to comment.