From 733feb011ed49467e33dbdaadf49b8d72c8e050b Mon Sep 17 00:00:00 2001 From: luvletter2333 Date: Thu, 16 Mar 2023 05:20:43 +0800 Subject: [PATCH] fix telegram translate crash on polls --- TMessagesProj/src/main/java/org/telegram/ui/ChatActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TMessagesProj/src/main/java/org/telegram/ui/ChatActivity.java b/TMessagesProj/src/main/java/org/telegram/ui/ChatActivity.java index cd30f9f22..011930eee 100644 --- a/TMessagesProj/src/main/java/org/telegram/ui/ChatActivity.java +++ b/TMessagesProj/src/main/java/org/telegram/ui/ChatActivity.java @@ -32078,7 +32078,7 @@ public class ChatActivity extends BaseFragment implements NotificationCenter.Not break; } case nkbtn_translate: { - if (NekoConfig.useTelegramTranslateInChat.Bool()) { + if (NekoConfig.useTelegramTranslateInChat.Bool() && !selectedObject.isPoll()) { String toLang = LocaleController.getInstance().getCurrentLocale().getLanguage(); int[] messageIdToTranslate = new int[] { selectedObject.getId() }; final CharSequence finalMessageText = getMessageCaption(selectedObject, selectedObjectGroup, messageIdToTranslate);