This commit is contained in:
Peter Maquiran
2023-08-15 10:15:08 +01:00
parent 4f4381a6d7
commit 30aba9b182
10 changed files with 107 additions and 129 deletions
@@ -95,9 +95,13 @@ export class ContactsPage implements OnInit {
}
this.chatService.createRoom(body).subscribe(async(res) => {
this.room = res['room'];
await this.ChatSystemService.getAllRooms();
this.getDirectMessage(this.room._id);
this.loading = false
this.ChatSystemService.getAllRooms(() => {
this.getDirectMessage(this.room._id);
this.loading = false
}, this.room._id);
}, ()=> {
this.loading = false
});