From d9c968cbf4c2cf4f696f4848064ea5731f4d7b81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B5=D0=B9=20=D0=9C=D1=83?= =?UTF-8?q?=D1=80=D0=B0=D1=82=D0=BE=D0=B2?= <50487552+MuratovAS@users.noreply.github.com> Date: Thu, 16 Dec 2021 08:08:04 +0000 Subject: [PATCH] ShareMyKey in private chats (#685) --- 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 ab202e866..934ea58eb 100644 --- a/TMessagesProj/src/main/java/org/telegram/ui/ChatActivity.java +++ b/TMessagesProj/src/main/java/org/telegram/ui/ChatActivity.java @@ -19523,7 +19523,7 @@ public class ChatActivity extends BaseFragment implements NotificationCenter.Not } if (shareKeyItem != null) { - if (currentChat != null && ChatObject.canSendMessages(currentChat) && StrUtil.isNotBlank(NekomuraConfig.openPGPApp.String())) { + if ((currentChat != null && ChatObject.canSendMessages(currentChat) || user != null && !user.self) && StrUtil.isNotBlank(NekomuraConfig.openPGPApp.String())) { shareKeyItem.setVisibility(View.VISIBLE); } else { shareKeyItem.setVisibility(View.GONE);