mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-12-25 15:02:33 +01:00
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
a9a53e3c68
@ -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() =>
|
||||||
|
@ -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() {
|
||||||
|
Loading…
Reference in New Issue
Block a user