Skip to content

Commit

Permalink
Fix shiosyakeyakini-info#683 別アカウントで開いたときに異なるアカウントで表示されてしまうのを修正
Browse files Browse the repository at this point in the history
  • Loading branch information
4ster1sk committed Nov 20, 2024
1 parent 6473ddc commit e486a03
Showing 1 changed file with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,18 @@ class MisskeyNoteNotifier extends _$MisskeyNoteNotifier {
);

if (selectedAccount == null) return;
await navigateToUserPage(user, account: selectedAccount);
User? targetUser;
if (user.host == null) {
if (user is UserLite) {
targetUser = user.copyWith(host: accountContext.getAccount.host);
} else if (user is UserDetailedNotMe) {
targetUser = user.copyWith(host: accountContext.getAccount.host);
} else if (user is UserDetailedNotMeWithRelations) {
targetUser = user.copyWith(host: accountContext.getAccount.host);
} else if (user is MeDetailed) {
targetUser = user.copyWith(host: accountContext.getAccount.host);
}
}
await navigateToUserPage(targetUser ?? user, account: selectedAccount);
}
}

0 comments on commit e486a03

Please sign in to comment.