Skip to content

Commit

Permalink
save user info when refreshCurrentUser
Browse files Browse the repository at this point in the history
Signed-off-by: 21pages <pages21@163.com>
  • Loading branch information
21pages committed Aug 20, 2023
1 parent 7ec4627 commit c3abd3e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions flutter/lib/common/widgets/peer_tab_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -722,14 +722,13 @@ Widget _hoverAction(
);
return Obx(
() => Container(
padding: padding,
margin: EdgeInsets.symmetric(horizontal: 1),
decoration:
(hover.value || hoverableWhenfalse?.value == false) ? deco : null,
child: InkWell(
onHover: (value) => hover.value = value,
onTap: onTap,
onTapDown: onTapDown,
child: child)),
child: Container(padding: padding, child: child))),
);
}
1 change: 1 addition & 0 deletions flutter/lib/models/user_model.dart
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ class UserModel {
_parseAndUpdateUser(UserPayload user) {
userName.value = user.name;
isAdmin.value = user.isAdmin;
bind.mainSetLocalOption(key: 'user_info', value: jsonEncode(user));
}

// update ab and group status
Expand Down

0 comments on commit c3abd3e

Please sign in to comment.