diff --git a/lib/utils/background_push.dart b/lib/utils/background_push.dart index cb5b00c0..9d5266c6 100644 --- a/lib/utils/background_push.dart +++ b/lib/utils/background_push.dart @@ -346,7 +346,9 @@ class BackgroundPush { .first; final res = json.decode(utf8.decode((await http.get(Uri.parse(url))).bodyBytes)); - if (res['gateway'] == 'matrix') { + if (res['gateway'] == 'matrix' || + (res['unifiedpush'] is Map && + res['unifiedpush']['gateway'] == 'matrix')) { endpoint = url; } } catch (e) {