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