mirror of
https://github.com/wrwrabbit/Partisan-Telegram-Android.git
synced 2026-05-05 07:20:38 +00:00
Update to 6.0.1 (1910)
This commit is contained in:
parent
80c4acfa3b
commit
ce5e817fb5
17 changed files with 276 additions and 159 deletions
|
|
@ -3805,10 +3805,16 @@ public class NotificationsController extends BaseController {
|
|||
}
|
||||
|
||||
public boolean isGlobalNotificationsEnabled(long did) {
|
||||
return isGlobalNotificationsEnabled(did, null);
|
||||
}
|
||||
|
||||
public boolean isGlobalNotificationsEnabled(long did, TLRPC.Chat chat) {
|
||||
int type;
|
||||
int lower_id = (int) did;
|
||||
if (lower_id < 0) {
|
||||
TLRPC.Chat chat = getMessagesController().getChat(-lower_id);
|
||||
if (chat == null) {
|
||||
chat = getMessagesController().getChat(-lower_id);
|
||||
}
|
||||
if (ChatObject.isChannel(chat) && !chat.megagroup) {
|
||||
type = TYPE_CHANNEL;
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue