Allow direct send to linked group
This commit is contained in:
parent
2441154750
commit
015b1f9086
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user