Messaging: Messages are highly important

Set IMPORTANCE_HIGH so that message notifications will pop on screen
by default.

Issue: calyxos#2984
Change-Id: I6d6d823310bc0ad5f06a47df69446ebf502894dd
This commit is contained in:
Tommy Webb
2025-03-26 17:48:22 +00:00
committed by Michael W
parent a39f270385
commit 8796975d4a
2 changed files with 2 additions and 2 deletions

View File

@@ -886,7 +886,7 @@ public class BugleNotifications {
NotificationsUtil.createNotificationChannel(context, NotificationsUtil.createNotificationChannel(context,
NotificationsUtil.DEFAULT_CHANNEL_ID, NotificationsUtil.DEFAULT_CHANNEL_ID,
R.string.notification_channel_messages_title, R.string.notification_channel_messages_title,
NotificationManager.IMPORTANCE_DEFAULT, NotificationManager.IMPORTANCE_HIGH,
NotificationsUtil.CONVERSATION_GROUP_NAME); NotificationsUtil.CONVERSATION_GROUP_NAME);
notificationManager.notify(notificationTag, type, notification); notificationManager.notify(notificationTag, type, notification);

View File

@@ -134,7 +134,7 @@ public class PeopleAndOptionsFragment extends Fragment
NotificationsUtil.createNotificationChannel(getActivity(), NotificationsUtil.createNotificationChannel(getActivity(),
mBinding.getData().getConversationId(), mBinding.getData().getConversationId(),
String.join(", ", participantsNames), String.join(", ", participantsNames),
NotificationManager.IMPORTANCE_DEFAULT, NotificationManager.IMPORTANCE_HIGH,
NotificationsUtil.CONVERSATION_GROUP_NAME); NotificationsUtil.CONVERSATION_GROUP_NAME);
Intent intent = new Intent(Settings.ACTION_APP_NOTIFICATION_SETTINGS); Intent intent = new Intent(Settings.ACTION_APP_NOTIFICATION_SETTINGS);
intent.putExtra(Settings.EXTRA_APP_PACKAGE, getContext().getPackageName()); intent.putExtra(Settings.EXTRA_APP_PACKAGE, getContext().getPackageName());