Skip to content

Commit

Permalink
TW-1902 fixed bottom navigation avatar sync
Browse files Browse the repository at this point in the history
  • Loading branch information
KhaledNjim committed Sep 2, 2024
1 parent 5b92d12 commit 45957f0
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
1 change: 0 additions & 1 deletion lib/pages/chat_list/chat_list.dart
Original file line number Diff line number Diff line change
Expand Up @@ -788,7 +788,6 @@ class ChatListController extends State<ChatList>
WidgetsBinding.instance.addPostFrameCallback((_) async {
if (mounted) {
Matrix.of(context).backgroundPush?.setupPush();
await matrixState.retrievePersistedActiveClient();
}
});
_checkTorBrowser();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,11 +155,16 @@ class AppAdaptiveScaffoldBodyController extends State<AppAdaptiveScaffoldBody>

@override
void initState() {
super.initState();
activeRoomIdNotifier.value = widget.activeRoomId;
resetLocationPathWithLoginToken();
getCurrentProfile();
_handleProfileDataChange();
super.initState();
WidgetsBinding.instance.addPostFrameCallback((_) async {
if (mounted) {
await matrix.retrievePersistedActiveClient();
getCurrentProfile();
_handleProfileDataChange();
}
});
}

@override
Expand Down
6 changes: 4 additions & 2 deletions lib/widgets/layouts/enum/adaptive_destinations_enum.dart
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,10 @@ enum AdaptiveDestinationEnum {
profile: profile,
isSelected: false,
),
activeIcon:
BottomNavigationAvatar(profile: profile, isSelected: true),
activeIcon: BottomNavigationAvatar(
profile: profile,
isSelected: true,
),
label: L10n.of(context)!.settings,
);
default:
Expand Down

0 comments on commit 45957f0

Please sign in to comment.