Skip to content

Commit

Permalink
Update ChatActivityEnterView.java
Browse files Browse the repository at this point in the history
  • Loading branch information
omg-xtao authored Feb 12, 2024
1 parent 6449e08 commit f84d120
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9159,7 +9159,6 @@ public void setCommand(MessageObject messageObject, String command, boolean long
if (command == null || getVisibility() != VISIBLE || messageEditText == null) {
return;
}
ifLongPress:
if (longPress) {
String text = messageEditText.getText().toString();
TLRPC.User user = messageObject != null && DialogObject.isChatDialog(dialog_id) ? accountInstance.getMessagesController().getUser(messageObject.messageOwner.from_id.user_id) : null;
Expand All @@ -9180,8 +9179,9 @@ public void setCommand(MessageObject messageObject, String command, boolean long
}
} else {
// Na: DisableClickCommandToSend
boolean disableClickCommandToSend = NaConfig.INSTANCE.getDisableClickCommandToSend().Bool();
if (disableClickCommandToSend) break ifLongPress;
if (NaConfig.INSTANCE.getDisableClickCommandToSend().Bool()) {
return;
}

if (slowModeTimer > 0 && !isInScheduleMode()) {
if (delegate != null) {
Expand Down

0 comments on commit f84d120

Please sign in to comment.