🐛 Fix infinite starting up
This commit is contained in:
		| @@ -357,24 +357,24 @@ class _AppSplashScreenState extends State<_AppSplashScreen> with TrayListener { | |||||||
|         notify.listen(); |         notify.listen(); | ||||||
|         try { |         try { | ||||||
|           notify.registerPushNotifications(); |           notify.registerPushNotifications(); | ||||||
|  |           if (!mounted) return; | ||||||
|  |           _setPhaseText('stickers'); | ||||||
|  |           final sticker = context.read<SnStickerProvider>(); | ||||||
|  |           await sticker.listSticker(); | ||||||
|  |           if (!mounted) return; | ||||||
|  |           _setPhaseText('userDirectory'); | ||||||
|  |           final ud = context.read<UserDirectoryProvider>(); | ||||||
|  |           await ud.loadAccountCache(); | ||||||
|  |           if (!mounted) return; | ||||||
|  |           _setPhaseText('realm'); | ||||||
|  |           final rm = context.read<SnRealmProvider>(); | ||||||
|  |           await rm.refreshAvailableRealms(); | ||||||
|  |           if (!mounted) return; | ||||||
|  |           _setPhaseText('chat'); | ||||||
|  |           final ct = context.read<ChatChannelProvider>(); | ||||||
|  |           await ct.refreshAvailableChannels(); | ||||||
|  |           _setPhaseText('done'); | ||||||
|         } catch (_) {} |         } catch (_) {} | ||||||
|         if (!mounted) return; |  | ||||||
|         _setPhaseText('stickers'); |  | ||||||
|         final sticker = context.read<SnStickerProvider>(); |  | ||||||
|         await sticker.listSticker(); |  | ||||||
|         if (!mounted) return; |  | ||||||
|         _setPhaseText('userDirectory'); |  | ||||||
|         final ud = context.read<UserDirectoryProvider>(); |  | ||||||
|         await ud.loadAccountCache(); |  | ||||||
|         if (!mounted) return; |  | ||||||
|         _setPhaseText('realm'); |  | ||||||
|         final rm = context.read<SnRealmProvider>(); |  | ||||||
|         await rm.refreshAvailableRealms(); |  | ||||||
|         if (!mounted) return; |  | ||||||
|         _setPhaseText('chat'); |  | ||||||
|         final ct = context.read<ChatChannelProvider>(); |  | ||||||
|         await ct.refreshAvailableChannels(); |  | ||||||
|         _setPhaseText('done'); |  | ||||||
|         _playIntro(); |         _playIntro(); | ||||||
|       } |       } | ||||||
|     } catch (err) { |     } catch (err) { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user