regression: load user on room info (#5425)

* fix: navigate to myself from mention

* fix: load user on room info

* minor tweak

---------

Co-authored-by: Diego Mello <diegolmello@gmail.com>
This commit is contained in:
Reinaldo Neto 2023-12-26 11:43:57 -03:00 committed by GitHub
parent b5c15d6835
commit a194e47d2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -167,9 +167,10 @@ const RoomInfoView = (): React.ReactElement => {
} catch { } catch {
// do nothing // do nothing
} }
} } else {
const r = handleRoles(roomUser); const r = handleRoles(roomUser);
if (r) setRoomUser({ ...roomUser, roles: r }); if (r) setRoomUser({ ...roomUser, roles: r });
}
}; };
const loadRoom = async () => { const loadRoom = async () => {