Update to 6.0.1 (1910)

This commit is contained in:
DrKLO 2020-03-30 19:49:17 +03:00
parent 80c4acfa3b
commit ce5e817fb5
17 changed files with 276 additions and 159 deletions

View file

@ -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 {