check isDisableAccount and isDisableAb before pull ab / group
This commit is contained in:
parent
49f717fcf8
commit
3dc6e576df
@ -110,6 +110,7 @@ class AbModel {
|
||||
|
||||
Future<void> _pullAb(
|
||||
{required ForcePullAb? force, required bool quiet}) async {
|
||||
if (bind.isDisableAb()) return;
|
||||
debugPrint("pullAb, force: $force, quiet: $quiet");
|
||||
if (!gFFI.userModel.isLogin) return;
|
||||
if (force == null && listInitialized && current.initialized) return;
|
||||
|
@ -23,6 +23,7 @@ class UserModel {
|
||||
UserModel(this.parent);
|
||||
|
||||
void refreshCurrentUser() async {
|
||||
if (bind.isDisableAccount()) return;
|
||||
final token = bind.mainGetLocalOption(key: 'access_token');
|
||||
if (token == '') {
|
||||
await updateOtherModels();
|
||||
|
Loading…
Reference in New Issue
Block a user