From 0fa4840f24d410decbb2ba91d013f747ac0d5c85 Mon Sep 17 00:00:00 2001 From: xtaodada Date: Mon, 26 Sep 2022 18:51:26 +0800 Subject: [PATCH] fix: Join Request Error Notice --- .../main/java/org/telegram/ui/Components/AlertsCreator.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/TMessagesProj/src/main/java/org/telegram/ui/Components/AlertsCreator.java b/TMessagesProj/src/main/java/org/telegram/ui/Components/AlertsCreator.java index c832f38bc..ce3c351b0 100644 --- a/TMessagesProj/src/main/java/org/telegram/ui/Components/AlertsCreator.java +++ b/TMessagesProj/src/main/java/org/telegram/ui/Components/AlertsCreator.java @@ -486,6 +486,12 @@ public class AlertsCreator { showSimpleToast(fragment, error.text); break; } + } else if (request instanceof TLRPC.TL_messages_hideChatJoinRequest) { + if ("USER_CHANNELS_TOO_MUCH".equals(error.text)) { + showAddUserAlert(error.text, fragment, true, request); + } else { + showSimpleToast(fragment, error.text); + } } return null;