fix mobile doesn't init ConnectionTypeState
Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
parent
eb58a39f57
commit
d15a641d88
@ -1,3 +1,4 @@
|
||||
import 'package:flutter_hbb/common.dart';
|
||||
import 'package:get/get.dart';
|
||||
|
||||
import '../consts.dart';
|
||||
@ -318,6 +319,7 @@ initSharedStates(String id) {
|
||||
FingerprintState.init(id);
|
||||
PeerBoolOption.init(id, 'zoom-cursor', () => false);
|
||||
UnreadChatCountState.init(id);
|
||||
if (isMobile) ConnectionTypeState.init(id); // desktop in other places
|
||||
}
|
||||
|
||||
removeSharedStates(String id) {
|
||||
@ -330,4 +332,5 @@ removeSharedStates(String id) {
|
||||
FingerprintState.delete(id);
|
||||
PeerBoolOption.delete(id, 'zoom-cursor');
|
||||
UnreadChatCountState.delete(id);
|
||||
if (isMobile) ConnectionTypeState.delete(id);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user