mirror of
https://github.com/krille-chan/fluffychat
synced 2024-09-10 09:45:14 +00:00
Revert "fix: Android push notification follow-up"
This reverts commit b24a7d9510c221c7ee685f3e68a213dc83ca8618
This commit is contained in:
parent
85f4a539d8
commit
31f3a8b4c5
1 changed files with 6 additions and 10 deletions
|
@ -60,7 +60,6 @@ Future<void> pushHelper(
|
|||
ticker: l10n!.unreadChats(notification.counts?.unread ?? 1),
|
||||
importance: Importance.max,
|
||||
priority: Priority.high,
|
||||
groupKey: notification.roomId,
|
||||
),
|
||||
),
|
||||
);
|
||||
|
@ -197,16 +196,10 @@ Future<void> _tryPushHelper(
|
|||
messagingStyleInformation?.messages?.add(newMessage);
|
||||
|
||||
final androidPlatformChannelSpecifics = AndroidNotificationDetails(
|
||||
notification.roomId ?? AppConfig.pushNotificationsChannelId,
|
||||
notification.roomName ?? AppConfig.pushNotificationsChannelName,
|
||||
channelDescription:
|
||||
notification.roomName ?? AppConfig.pushNotificationsChannelDescription,
|
||||
groupAlertBehavior: GroupAlertBehavior.summary,
|
||||
category: AndroidNotificationCategory.message,
|
||||
AppConfig.pushNotificationsChannelId,
|
||||
AppConfig.pushNotificationsChannelName,
|
||||
channelDescription: AppConfig.pushNotificationsChannelDescription,
|
||||
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),
|
||||
|
@ -214,6 +207,9 @@ 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 a new issue