Allow direct send to linked group
This commit is contained in:
parent
2441154750
commit
015b1f9086
@ -16891,6 +16891,12 @@ public class ChatActivity extends BaseFragment implements NotificationCenter.Not
|
||||
chatActivityEnterView.setFieldFocused();
|
||||
AndroidUtilities.runOnUIThread(() -> chatActivityEnterView.openKeyboard(), 100);
|
||||
} else {
|
||||
boolean showEnter = false;
|
||||
if (currentChat != null && currentChat.megagroup && chatInfo != null && chatInfo.linked_chat_id != 0) {
|
||||
TLRPC.Chat linked = getMessagesController().getChat(chatInfo.linked_chat_id);
|
||||
showEnter = !ChatObject.isKickedFromChat(linked);
|
||||
}
|
||||
if (!showEnter) {
|
||||
bottomOverlayChat.setVisibility(View.VISIBLE);
|
||||
chatActivityEnterView.setFieldFocused(false);
|
||||
chatActivityEnterView.setVisibility(View.INVISIBLE);
|
||||
@ -16899,6 +16905,7 @@ public class ChatActivity extends BaseFragment implements NotificationCenter.Not
|
||||
stickersAdapter.hide();
|
||||
}
|
||||
}
|
||||
}
|
||||
if (attachItem != null) {
|
||||
attachItem.setVisibility(View.GONE);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user