mirror of
https://github.com/wrwrabbit/Partisan-Telegram-Android.git
synced 2026-05-05 15:41:02 +00:00
Bug fixes
This commit is contained in:
parent
f00aef78bd
commit
1122ab85d1
3 changed files with 50 additions and 45 deletions
|
|
@ -475,7 +475,7 @@ public class NotificationsController {
|
|||
if (messageObjects.isEmpty()) {
|
||||
return;
|
||||
}
|
||||
notifyCheck = isLast;
|
||||
boolean added = false;
|
||||
|
||||
int oldCount = popupMessages.size();
|
||||
HashMap<Long, Boolean> settingsCache = new HashMap<Long, Boolean>();
|
||||
|
|
@ -487,9 +487,10 @@ public class NotificationsController {
|
|||
continue;
|
||||
}
|
||||
long dialog_id = messageObject.getDialogId();
|
||||
if (dialog_id == openned_dialog_id) {
|
||||
if (dialog_id == openned_dialog_id && ApplicationLoader.isScreenOn) {
|
||||
continue;
|
||||
}
|
||||
added = true;
|
||||
|
||||
Boolean value = settingsCache.get(dialog_id);
|
||||
boolean isChat = (int)dialog_id < 0;
|
||||
|
|
@ -508,6 +509,10 @@ public class NotificationsController {
|
|||
}
|
||||
}
|
||||
|
||||
if (added) {
|
||||
notifyCheck = isLast;
|
||||
}
|
||||
|
||||
if (!popupMessages.isEmpty() && oldCount != popupMessages.size()) {
|
||||
if (ApplicationLoader.mainInterfacePaused || !ApplicationLoader.isScreenOn) {
|
||||
MessageObject messageObject = messageObjects.get(0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue