mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-27 23:09:35 +01:00
fix: Set fcm priority to max on android
This commit is contained in:
parent
253a3afbdd
commit
8913b42803
@ -179,15 +179,15 @@ Future<void> _tryPushHelper(
|
|||||||
final id = await mapRoomIdToInt(event.room.id);
|
final id = await mapRoomIdToInt(event.room.id);
|
||||||
|
|
||||||
// Show notification
|
// Show notification
|
||||||
|
final person = Person(
|
||||||
|
name: event.senderFromMemoryOrFallback.calcDisplayname(),
|
||||||
|
icon:
|
||||||
|
avatarFile == null ? null : BitmapFilePathAndroidIcon(avatarFile.path),
|
||||||
|
);
|
||||||
final newMessage = Message(
|
final newMessage = Message(
|
||||||
body,
|
body,
|
||||||
event.originServerTs,
|
event.originServerTs,
|
||||||
Person(
|
person,
|
||||||
name: event.senderFromMemoryOrFallback.calcDisplayname(),
|
|
||||||
icon: avatarFile == null
|
|
||||||
? null
|
|
||||||
: BitmapFilePathAndroidIcon(avatarFile.path),
|
|
||||||
),
|
|
||||||
);
|
);
|
||||||
|
|
||||||
final messagingStyleInformation = PlatformInfos.isAndroid
|
final messagingStyleInformation = PlatformInfos.isAndroid
|
||||||
@ -203,7 +203,7 @@ Future<void> _tryPushHelper(
|
|||||||
number: notification.counts?.unread,
|
number: notification.counts?.unread,
|
||||||
styleInformation: messagingStyleInformation ??
|
styleInformation: messagingStyleInformation ??
|
||||||
MessagingStyleInformation(
|
MessagingStyleInformation(
|
||||||
Person(name: event.room.client.userID),
|
person,
|
||||||
conversationTitle: event.room.getLocalizedDisplayname(
|
conversationTitle: event.room.getLocalizedDisplayname(
|
||||||
MatrixLocals(l10n),
|
MatrixLocals(l10n),
|
||||||
),
|
),
|
||||||
@ -212,7 +212,7 @@ Future<void> _tryPushHelper(
|
|||||||
),
|
),
|
||||||
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,
|
||||||
groupKey: event.room.id,
|
groupKey: event.room.id,
|
||||||
);
|
);
|
||||||
const iOSPlatformChannelSpecifics = DarwinNotificationDetails();
|
const iOSPlatformChannelSpecifics = DarwinNotificationDetails();
|
||||||
|
Loading…
Reference in New Issue
Block a user