Merge branch 'krille/fix-up' into 'main'

chore: Follow up fix unified push

See merge request famedly/fluffychat!863
This commit is contained in:
Krille Fear 2022-05-06 08:47:51 +00:00
commit d1034e09b9
1 changed files with 2 additions and 0 deletions

View File

@ -377,6 +377,8 @@ class BackgroundPush {
upAction = true;
final data = Map<String, dynamic>.from(
json.decode(utf8.decode(message))['notification']);
// UP may strip the devices list
data['devices'] ??= [];
await pushHelper(
PushNotification.fromJson(data),
client: client,