fix: incorrect setState inside setState in ChatListController

This commit is contained in:
td 2022-11-13 18:09:42 +01:00
parent b04dc0f4c9
commit 04b87bcd03
No known key found for this signature in database
GPG Key ID: F6D9E9BF14C7D103

View File

@ -668,7 +668,7 @@ class ChatListController extends State<ChatList>
Future<void> _checkTorBrowser() async {
if (!kIsWeb) return;
final isTor = await TorBrowserDetector.isTorBrowser;
setState(() => isTorBrowser = isTor);
isTorBrowser = isTor;
}
Future<void> dehydrate() =>