mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-27 14:59:29 +01:00
chore: Follow up push android priority and channels
This commit is contained in:
parent
8913b42803
commit
9ace2fe07b
@ -58,7 +58,7 @@ Future<void> pushHelper(
|
|||||||
number: notification.counts?.unread,
|
number: notification.counts?.unread,
|
||||||
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.max,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
@ -196,17 +196,19 @@ Future<void> _tryPushHelper(
|
|||||||
: null;
|
: null;
|
||||||
messagingStyleInformation?.messages?.add(newMessage);
|
messagingStyleInformation?.messages?.add(newMessage);
|
||||||
|
|
||||||
|
final roomName = event.room.getLocalizedDisplayname(MatrixLocals(l10n));
|
||||||
|
|
||||||
final androidPlatformChannelSpecifics = AndroidNotificationDetails(
|
final androidPlatformChannelSpecifics = AndroidNotificationDetails(
|
||||||
AppConfig.pushNotificationsChannelId,
|
event.room.id,
|
||||||
AppConfig.pushNotificationsChannelName,
|
roomName,
|
||||||
channelDescription: AppConfig.pushNotificationsChannelDescription,
|
channelDescription:
|
||||||
|
event.room.isDirectChat ? l10n.directChats : l10n.groups,
|
||||||
number: notification.counts?.unread,
|
number: notification.counts?.unread,
|
||||||
|
category: AndroidNotificationCategory.message,
|
||||||
styleInformation: messagingStyleInformation ??
|
styleInformation: messagingStyleInformation ??
|
||||||
MessagingStyleInformation(
|
MessagingStyleInformation(
|
||||||
person,
|
person,
|
||||||
conversationTitle: event.room.getLocalizedDisplayname(
|
conversationTitle: roomName,
|
||||||
MatrixLocals(l10n),
|
|
||||||
),
|
|
||||||
groupConversation: !event.room.isDirectChat,
|
groupConversation: !event.room.isDirectChat,
|
||||||
messages: [newMessage],
|
messages: [newMessage],
|
||||||
),
|
),
|
||||||
|
Loading…
Reference in New Issue
Block a user