mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
Prepare notifications.
This commit is contained in:
@@ -376,11 +376,24 @@ public class NotificationsController {
|
||||
|
||||
if( chat_id == opened_dialog_id && ApplicationLoader.isScreenOn ) {
|
||||
playInChatSound();
|
||||
return;
|
||||
}
|
||||
else {
|
||||
|
||||
SharedPreferences preferences = ApplicationLoader.applicationContext.getSharedPreferences("Notifications", Context.MODE_PRIVATE);
|
||||
int notifyOverride = getNotifyOverride(preferences, chat_id);
|
||||
if (notifyOverride == 2) {
|
||||
return; // muted
|
||||
}
|
||||
|
||||
MrChat mrChat = MrMailbox.getChat(chat_id);
|
||||
boolean isGroupChat = mrChat.getType()==MrChat.MR_CHAT_GROUP;
|
||||
if( isGroupChat && mrChat.getId()==MrChat.MR_CHAT_ID_DEADDROP ) {
|
||||
if( ) {
|
||||
|
||||
}
|
||||
}
|
||||
int popup = preferences.getInt(isGroupChat ? "popupGroup" : "popupAll", 0);
|
||||
|
||||
/* old func:
|
||||
public void processNewMessages(final ArrayList<MessageObject> messageObjects, final boolean isLast)
|
||||
if (messageObjects.isEmpty()) {
|
||||
|
||||
Reference in New Issue
Block a user