fix: no pushers enpdoint

This commit is contained in:
Sorunome 2020-10-30 09:52:25 +01:00
parent fab1e1b980
commit b3942ad701
No known key found for this signature in database
GPG Key ID: B19471D07FC9BE9C
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ abstract class FirebaseController {
}
final pushers = await client.requestPushers().catchError((e) {
debugPrint('[Push] Unable to request pushers: ${e.toString()}');
return [];
return <Pusher>[];
});
final currentPushers = pushers.where((pusher) => pusher.pushkey == token);
if (currentPushers.length == 1 &&