Merge branch 'td/fix_tor_setState' into 'main'

fix: incorrect setState inside setState in ChatListController

See merge request famedly/fluffychat!1028
This commit is contained in:
Krille Fear 2022-11-14 07:19:59 +00:00
commit a9a53e3c68
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -59,7 +59,7 @@ class HomeserverPickerController extends State<HomeserverPicker> {
); );
final isTor = await TorBrowserDetector.isTorBrowser; final isTor = await TorBrowserDetector.isTorBrowser;
setState(() => isTorBrowser = isTor); isTorBrowser = isTor;
} }
void _updateFocus() { void _updateFocus() {