|
|
|
@ -58,7 +58,10 @@ Future<void> pushHelper(
|
|
|
|
|
AppConfig.pushNotificationsChannelId,
|
|
|
|
|
l10n.incomingMessages,
|
|
|
|
|
number: notification.counts?.unread,
|
|
|
|
|
ticker: l10n.unreadChats(notification.counts?.unread ?? 1),
|
|
|
|
|
ticker: l10n.unreadChatsInApp(
|
|
|
|
|
AppConfig.applicationName,
|
|
|
|
|
(notification.counts?.unread ?? 0).toString(),
|
|
|
|
|
),
|
|
|
|
|
importance: Importance.high,
|
|
|
|
|
priority: Priority.max,
|
|
|
|
|
shortcutId: notification.roomId,
|
|
|
|
@ -277,7 +280,14 @@ Future<void> _tryPushHelper(
|
|
|
|
|
groupConversation: !event.room.isDirectChat,
|
|
|
|
|
messages: [newMessage],
|
|
|
|
|
),
|
|
|
|
|
ticker: l10n.unreadChats(notification.counts?.unread ?? 1),
|
|
|
|
|
ticker: event.calcLocalizedBodyFallback(
|
|
|
|
|
matrixLocals,
|
|
|
|
|
plaintextBody: true,
|
|
|
|
|
withSenderNamePrefix: true,
|
|
|
|
|
hideReply: true,
|
|
|
|
|
hideEdit: true,
|
|
|
|
|
removeMarkdown: true,
|
|
|
|
|
),
|
|
|
|
|
importance: Importance.high,
|
|
|
|
|
priority: Priority.max,
|
|
|
|
|
groupKey: notificationGroupId,
|
|
|
|
|