From 6b28fd05c8f541d004fd04a39674239084e559bb Mon Sep 17 00:00:00 2001 From: xtaodada Date: Tue, 8 Oct 2024 14:48:47 +0800 Subject: [PATCH] fix: cannot send command message when open pangu --- .../main/java/org/telegram/messenger/SendMessagesHelper.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/TMessagesProj/src/main/java/org/telegram/messenger/SendMessagesHelper.java b/TMessagesProj/src/main/java/org/telegram/messenger/SendMessagesHelper.java index dbafd39b0e..7cb9c1d6d1 100644 --- a/TMessagesProj/src/main/java/org/telegram/messenger/SendMessagesHelper.java +++ b/TMessagesProj/src/main/java/org/telegram/messenger/SendMessagesHelper.java @@ -4267,7 +4267,9 @@ public void sendMessage(SendMessageParams sendMessageParams) { entities = pair.getSecond(); newMsg.message = pair.getFirst(); - newMsg.entities = pair.getSecond(); + if (entities != null && !entities.isEmpty()) { + newMsg.entities = entities; + } } if (stars > 0) {