1
0
mirror of https://github.com/MGislv/NekoX.git synced 2024-06-30 22:22:57 +00:00

Bug fixes

This commit is contained in:
DrKLO 2016-05-25 16:27:33 -07:00
parent 85239ed7cf
commit f563fbbb05
2 changed files with 5 additions and 2 deletions

View File

@ -5787,7 +5787,7 @@ public class MessagesController implements NotificationCenter.NotificationCenter
}
}
long dialog_id = -update.channel_id;
long dialog_id = -message.to_id.channel_id;
Integer value = dialogs_read_inbox_max.get(dialog_id);
if (value == null) {
value = MessagesStorage.getInstance().getDialogReadInboxMax(dialog_id);

View File

@ -417,6 +417,9 @@ public class NotificationsController {
value = !(notifyOverride == 2 || (!preferences.getBoolean("EnableAll", true) || isChat && !preferences.getBoolean("EnableGroup", true)) && notifyOverride == 0);
settingsCache.put(dialog_id, value);
}
if (popup != 0 && messageObject.messageOwner.to_id.channel_id != 0 && !messageObject.isMegagroup()) {
popup = 0;
}
if (value) {
if (popup != 0) {
popupArray.add(0, messageObject);