Allow direct send to linked group

This commit is contained in:
世界 2021-04-13 14:41:58 +08:00
parent 2441154750
commit 015b1f9086
No known key found for this signature in database
GPG Key ID: CD109927C34A63C4

View File

@ -16891,12 +16891,19 @@ public class ChatActivity extends BaseFragment implements NotificationCenter.Not
chatActivityEnterView.setFieldFocused(); chatActivityEnterView.setFieldFocused();
AndroidUtilities.runOnUIThread(() -> chatActivityEnterView.openKeyboard(), 100); AndroidUtilities.runOnUIThread(() -> chatActivityEnterView.openKeyboard(), 100);
} else { } else {
bottomOverlayChat.setVisibility(View.VISIBLE); boolean showEnter = false;
chatActivityEnterView.setFieldFocused(false); if (currentChat != null && currentChat.megagroup && chatInfo != null && chatInfo.linked_chat_id != 0) {
chatActivityEnterView.setVisibility(View.INVISIBLE); TLRPC.Chat linked = getMessagesController().getChat(chatInfo.linked_chat_id);
chatActivityEnterView.closeKeyboard(); showEnter = !ChatObject.isKickedFromChat(linked);
if (stickersAdapter != null) { }
stickersAdapter.hide(); if (!showEnter) {
bottomOverlayChat.setVisibility(View.VISIBLE);
chatActivityEnterView.setFieldFocused(false);
chatActivityEnterView.setVisibility(View.INVISIBLE);
chatActivityEnterView.closeKeyboard();
if (stickersAdapter != null) {
stickersAdapter.hide();
}
} }
} }
if (attachItem != null) { if (attachItem != null) {