mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-12-24 22:42:33 +01:00
Merge branch 'braid/android-push-follow-up' into 'main'
fix: Android push notification follow-up See merge request famedly/fluffychat!1061
This commit is contained in:
commit
2512630172
@ -60,6 +60,7 @@ Future<void> pushHelper(
|
||||
ticker: l10n!.unreadChats(notification.counts?.unread ?? 1),
|
||||
importance: Importance.max,
|
||||
priority: Priority.high,
|
||||
groupKey: notification.roomId,
|
||||
),
|
||||
),
|
||||
);
|
||||
@ -196,10 +197,16 @@ Future<void> _tryPushHelper(
|
||||
messagingStyleInformation?.messages?.add(newMessage);
|
||||
|
||||
final androidPlatformChannelSpecifics = AndroidNotificationDetails(
|
||||
AppConfig.pushNotificationsChannelId,
|
||||
AppConfig.pushNotificationsChannelName,
|
||||
channelDescription: AppConfig.pushNotificationsChannelDescription,
|
||||
notification.roomId ?? AppConfig.pushNotificationsChannelId,
|
||||
notification.roomName ?? AppConfig.pushNotificationsChannelName,
|
||||
channelDescription:
|
||||
notification.roomName ?? AppConfig.pushNotificationsChannelDescription,
|
||||
groupAlertBehavior: GroupAlertBehavior.summary,
|
||||
category: AndroidNotificationCategory.message,
|
||||
number: notification.counts?.unread,
|
||||
ticker: l10n.unreadChats(notification.counts?.unread ?? 1),
|
||||
importance: Importance.max,
|
||||
priority: Priority.high,
|
||||
styleInformation: messagingStyleInformation ??
|
||||
MessagingStyleInformation(
|
||||
Person(name: event.room.client.userID),
|
||||
@ -207,9 +214,6 @@ Future<void> _tryPushHelper(
|
||||
groupConversation: !event.room.isDirectChat,
|
||||
messages: [newMessage],
|
||||
),
|
||||
ticker: l10n.unreadChats(notification.counts?.unread ?? 1),
|
||||
importance: Importance.max,
|
||||
priority: Priority.high,
|
||||
groupKey: event.room.id,
|
||||
);
|
||||
const iOSPlatformChannelSpecifics = DarwinNotificationDetails();
|
||||
|
Loading…
Reference in New Issue
Block a user