mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-22 16:27:22 +00:00
Fix office join (#6650)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
parent
a0f3be9dbd
commit
2a9e9918ac
@ -31,13 +31,13 @@
|
|||||||
const client = getClient()
|
const client = getClient()
|
||||||
|
|
||||||
async function accept (): Promise<void> {
|
async function accept (): Promise<void> {
|
||||||
|
await client.update(request, { status: RequestStatus.Approved })
|
||||||
if (request.room === $myOffice?._id && !$isConnected) {
|
if (request.room === $myOffice?._id && !$isConnected) {
|
||||||
const me = (getCurrentAccount() as PersonAccount).person
|
const me = (getCurrentAccount() as PersonAccount).person
|
||||||
const person = $personByIdStore.get(me)
|
const person = $personByIdStore.get(me)
|
||||||
if (person === undefined) return
|
if (person === undefined) return
|
||||||
await connectRoom(0, 0, $myInfo, person, $myOffice)
|
await connectRoom(0, 0, $myInfo, person, $myOffice)
|
||||||
}
|
}
|
||||||
await client.update(request, { status: RequestStatus.Approved })
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async function decline (): Promise<void> {
|
async function decline (): Promise<void> {
|
||||||
|
Loading…
Reference in New Issue
Block a user