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:
commit
fcd19fa8e9
2 changed files with 2 additions and 2 deletions
|
|
@ -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() =>
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@ class HomeserverPickerController extends State<HomeserverPicker> {
|
|||
);
|
||||
|
||||
final isTor = await TorBrowserDetector.isTorBrowser;
|
||||
setState(() => isTorBrowser = isTor);
|
||||
isTorBrowser = isTor;
|
||||
}
|
||||
|
||||
void _updateFocus() {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue