forked from signalapp/Signal-Android
-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
- when conversation is currently visible reaction sound is not used. This is used: "recipient.messageRingtone ?: SignalStore.settings.messageNotificationSound"
- reactions sound can only be customized globally, if chat has it's own message_channel, the message_channel will be used
- not saved in Signalstore yet
- only tested with Android API 34
- private static void onUpgrade(@nonnull NotificationManager notificationManager, int oldVersion, int newVersion) is not yet implemented for reactions_channel
and one should probably implement an equivalent function
@TargetApi(26)
private void updateMessageChannel(@NonNull ChannelUpdater updater) {
NotificationManager notificationManager = ServiceUtil.getNotificationManager(context);
int existingVersion = TextSecurePreferences.getNotificationMessagesChannelVersion(context);
int newVersion = existingVersion + 1;
Log.i(TAG, "Updating message channel from version " + existingVersion + " to " + newVersion);
if (updateExistingChannel(notificationManager, getMessagesChannelId(existingVersion), getMessagesChannelId(newVersion), updater)) {
TextSecurePreferences.setNotificationMessagesChannelVersion(context, newVersion);
} else {
onCreate(notificationManager);
}}
for reaction channels as well
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels