mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-12-25 15:02:33 +01:00
fix: Hide google services warning after marked
This commit is contained in:
parent
3cb7842a7b
commit
6616314d77
@ -362,11 +362,13 @@ class ChatListController extends State<ChatList>
|
|||||||
_hackyWebRTCFixForWeb();
|
_hackyWebRTCFixForWeb();
|
||||||
CallKeepManager().initialize();
|
CallKeepManager().initialize();
|
||||||
WidgetsBinding.instance.addPostFrameCallback((_) async {
|
WidgetsBinding.instance.addPostFrameCallback((_) async {
|
||||||
|
if (mounted) {
|
||||||
searchServer = await Store().getItem(_serverStoreNamespace);
|
searchServer = await Store().getItem(_serverStoreNamespace);
|
||||||
|
Matrix.of(context).backgroundPush?.setupPush();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
_checkTorBrowser();
|
_checkTorBrowser();
|
||||||
Matrix.of(context).backgroundPush?.setupPush();
|
|
||||||
_onSyncStatus =
|
_onSyncStatus =
|
||||||
Matrix.of(context).client.onSyncStatus.stream.listen((status) {
|
Matrix.of(context).client.onSyncStatus.stream.listen((status) {
|
||||||
Logs().v('Sync Status: ${status.status.name}');
|
Logs().v('Sync Status: ${status.status.name}');
|
||||||
|
@ -84,7 +84,6 @@ class BackgroundPush {
|
|||||||
activeRoomId: router?.currentState?.pathParameters['roomid'],
|
activeRoomId: router?.currentState?.pathParameters['roomid'],
|
||||||
onSelectNotification: goToRoom,
|
onSelectNotification: goToRoom,
|
||||||
),
|
),
|
||||||
onNewToken: _newFcmToken,
|
|
||||||
);
|
);
|
||||||
if (Platform.isAndroid) {
|
if (Platform.isAndroid) {
|
||||||
UnifiedPush.initialize(
|
UnifiedPush.initialize(
|
||||||
@ -113,21 +112,11 @@ class BackgroundPush {
|
|||||||
instance.router = router;
|
instance.router = router;
|
||||||
// ignore: prefer_initializing_formals
|
// ignore: prefer_initializing_formals
|
||||||
instance.onFcmError = onFcmError;
|
instance.onFcmError = onFcmError;
|
||||||
instance.fullInit();
|
|
||||||
return instance;
|
return instance;
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<void> fullInit() => setupPush();
|
|
||||||
|
|
||||||
void handleLoginStateChanged(_) => setupPush();
|
|
||||||
|
|
||||||
StreamSubscription<SyncUpdate>? onRoomSync;
|
StreamSubscription<SyncUpdate>? onRoomSync;
|
||||||
|
|
||||||
void _newFcmToken(String token) {
|
|
||||||
_fcmToken = token;
|
|
||||||
setupPush();
|
|
||||||
}
|
|
||||||
|
|
||||||
Future<void> setupPusher({
|
Future<void> setupPusher({
|
||||||
String? gatewayUrl,
|
String? gatewayUrl,
|
||||||
String? token,
|
String? token,
|
||||||
@ -255,7 +244,7 @@ class BackgroundPush {
|
|||||||
if (context == null) {
|
if (context == null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (await store.getItemBool(SettingKeys.showNoGoogle, true) != true) {
|
if (await store.getItemBool(SettingKeys.showNoGoogle, true) == true) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
await loadLocale();
|
await loadLocale();
|
||||||
|
Loading…
Reference in New Issue
Block a user