mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-23 20:49:26 +01:00
Merge branch 'soru/up-update' into 'main'
chore: Support new unifiedpush gateway discovery Closes #474 See merge request famedly/fluffychat!468
This commit is contained in:
commit
79673ed757
@ -346,7 +346,9 @@ class BackgroundPush {
|
|||||||
.first;
|
.first;
|
||||||
final res =
|
final res =
|
||||||
json.decode(utf8.decode((await http.get(Uri.parse(url))).bodyBytes));
|
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;
|
endpoint = url;
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
Loading…
Reference in New Issue
Block a user