隐私设置

This commit is contained in:
2022-11-01 11:06:51 +08:00
parent 0b5d510766
commit ff612bcc56
4 changed files with 54 additions and 9 deletions

View File

@@ -49,8 +49,17 @@ class UserProvider {
(x) => SearchUserModel.fromJson(x),
),
);
} catch (err) {
UiTools.toast(err.toString());
} catch (e) {
UiTools.toast(e.toString());
}
return null;
}
static Future<bool?> togglePrivacy() async {
try {
return await Http.put('user/privacy');
} catch (e) {
UiTools.toast(e.toString());
}
return null;
}