chore: Follow up fix unified push
This commit is contained in:
parent
50bb50e3ff
commit
74fa66fbcd
1 changed files with 2 additions and 0 deletions
|
|
@ -377,6 +377,8 @@ class BackgroundPush {
|
||||||
upAction = true;
|
upAction = true;
|
||||||
final data = Map<String, dynamic>.from(
|
final data = Map<String, dynamic>.from(
|
||||||
json.decode(utf8.decode(message))['notification']);
|
json.decode(utf8.decode(message))['notification']);
|
||||||
|
// UP may strip the devices list
|
||||||
|
data['devices'] ??= [];
|
||||||
await pushHelper(
|
await pushHelper(
|
||||||
PushNotification.fromJson(data),
|
PushNotification.fromJson(data),
|
||||||
client: client,
|
client: client,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue