Skip to content

Commit

Permalink
Fix office join (#6650)
Browse files Browse the repository at this point in the history
Signed-off-by: Denis Bykhov <[email protected]>
  • Loading branch information
BykhovDenis committed Sep 20, 2024
1 parent a0f3be9 commit 2a9e991
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/love-resources/src/components/RequestPopup.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@
const client = getClient()
async function accept (): Promise<void> {
await client.update(request, { status: RequestStatus.Approved })
if (request.room === $myOffice?._id && !$isConnected) {
const me = (getCurrentAccount() as PersonAccount).person
const person = $personByIdStore.get(me)
if (person === undefined) return
await connectRoom(0, 0, $myInfo, person, $myOffice)
}
await client.update(request, { status: RequestStatus.Approved })
}
async function decline (): Promise<void> {
Expand Down

0 comments on commit 2a9e991

Please sign in to comment.