From df0afa1cced6dff1e6fe3b8bcc9e9079726426bb Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Fri, 6 May 2022 10:26:35 +0200 Subject: [PATCH] chore: Follow up fix unified push --- lib/utils/background_push.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/utils/background_push.dart b/lib/utils/background_push.dart index 00ca2aaa..4c6fb465 100644 --- a/lib/utils/background_push.dart +++ b/lib/utils/background_push.dart @@ -377,6 +377,8 @@ class BackgroundPush { upAction = true; final data = Map.from( json.decode(utf8.decode(message))['notification']); + // UP may strip the devices list + data['devices'] ??= []; await pushHelper( PushNotification.fromJson(data), client: client,