From ba67f875df0083b3a158795c719d1052bdd10122 Mon Sep 17 00:00:00 2001 From: Riko Sakurauchi Date: Wed, 1 Jan 2020 21:58:55 +0800 Subject: [PATCH] fix prpr bug --- TMessagesProj/src/main/java/org/telegram/ui/ChatActivity.java | 3 ++- 1 file changed, 2 insertions(+), 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 fe0eeea55..1686645d8 100644 --- a/TMessagesProj/src/main/java/org/telegram/ui/ChatActivity.java +++ b/TMessagesProj/src/main/java/org/telegram/ui/ChatActivity.java @@ -13651,7 +13651,8 @@ public class ChatActivity extends BaseFragment implements NotificationCenter.Not boolean allowRepeat = currentUser != null || (currentChat != null && ChatObject.canSendMessages(currentChat)); boolean allowPrpr = currentUser != null - || (currentChat != null && ChatObject.canSendMessages(currentChat) && !currentChat.broadcast); + || (currentChat != null && ChatObject.canSendMessages(currentChat) && !currentChat.broadcast && + message.isFromUser()); if (allowRepeat) { items.add(LocaleController.getString("Repeat", R.string.Repeat)); options.add(94);