Skip to content

Commit 64c39e8

Browse files
committed
feat: update host status in session participants modal on user response
1 parent a4ce8c7 commit 64c39e8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

apps/client/src/components/modal/SessionParticipantsModal.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ function SessionParticipantsModal() {
2525
sessionToken,
2626
setSessionUsers,
2727
updateSessionUser,
28+
updateReplyIsHost,
2829
} = useSessionStore();
2930

3031
const [selectedUserId, setSelectedUserId] = useState<number>();
@@ -48,6 +49,7 @@ function SessionParticipantsModal() {
4849
isHost: params.isHost,
4950
}),
5051
onSuccess: (res) => {
52+
updateReplyIsHost(res.user.userId, res.user.isHost);
5153
updateSessionUser(res.user);
5254
addToast({
5355
type: 'SUCCESS',

0 commit comments

Comments
 (0)