|
|
@@ -63,7 +63,10 @@ class AccountRepository {
|
|
|
Future<void> updateUserInfo(String profession, String post) {
|
|
|
return atmobApi
|
|
|
.updateUserInfo(UserInfoUpdateRequest(profession, post))
|
|
|
- .then(HttpHandler.handle(true));
|
|
|
+ .then(HttpHandler.handle(true))
|
|
|
+ .then((data) {
|
|
|
+ accountRepository.refreshUserInfo();
|
|
|
+ });
|
|
|
}
|
|
|
|
|
|
Future<void>? refreshUserInfo() {
|
|
|
@@ -124,7 +127,6 @@ class AccountRepository {
|
|
|
eventBus.emit(EventUserLogout);
|
|
|
}
|
|
|
|
|
|
-
|
|
|
getUserSubName(String? phone) {
|
|
|
String name = StringName.account.tr;
|
|
|
if (phone == null) {
|