1
0
mirror of https://github.com/MGislv/NekoX.git synced 2024-07-04 11:13:36 +00:00

ShareMyKey in private chats (#685)

This commit is contained in:
Алексей Муратов 2021-12-16 08:08:04 +00:00 committed by GitHub
parent dac6bc4003
commit d9c968cbf4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);