mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
tweak in-chat-sounds
This commit is contained in:
@@ -289,6 +289,13 @@ public class NotificationCenter {
|
||||
|
||||
DcChat dcChat = dcContext.getChat(chatId);
|
||||
|
||||
if (chatId == visibleChatId) {
|
||||
// in-chat sounds are not related to notifications,
|
||||
// they can be enabled/disabled independently
|
||||
InChatSounds.getInstance(dcContext.context).playIncomingSound();
|
||||
return;
|
||||
}
|
||||
|
||||
if (!Prefs.isNotificationsEnabled(context) || Prefs.isChatMuted(context, chatId)) {
|
||||
return;
|
||||
}
|
||||
@@ -299,11 +306,6 @@ public class NotificationCenter {
|
||||
return;
|
||||
}
|
||||
|
||||
if (chatId == visibleChatId) {
|
||||
InChatSounds.getInstance(dcContext.context).playIncomingSound();
|
||||
return;
|
||||
}
|
||||
|
||||
NotificationManagerCompat notificationManager = NotificationManagerCompat.from(context);
|
||||
|
||||
// get notification text as a single line
|
||||
|
||||
Reference in New Issue
Block a user