From 3906abcd34197351c2a0f8abc57a888785c07cef Mon Sep 17 00:00:00 2001 From: Peter Maquiran Date: Tue, 26 Jul 2022 16:39:12 +0100 Subject: [PATCH] add time --- src/app/shared/chat/new-group/new-group.page.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/shared/chat/new-group/new-group.page.ts b/src/app/shared/chat/new-group/new-group.page.ts index 2c11354f5..311d5e962 100644 --- a/src/app/shared/chat/new-group/new-group.page.ts +++ b/src/app/shared/chat/new-group/new-group.page.ts @@ -108,7 +108,7 @@ export class NewGroupPage implements OnInit{ this.addGroupMessage.emit(res.result.rid); await this.wsChatMethodsService.getAllRooms(); - if(this.wsChatMethodsService.getGroupRoom(res.result.rid)) { + if(!this.wsChatMethodsService.getGroupRoom(res.result.rid)) { setTimeout(()=> { this.documents.forEach(element => { this.wsChatMethodsService.getGroupRoom(res.result.rid).send({