This commit is contained in:
Peter Maquiran
2023-08-14 16:25:57 +01:00
parent 4ae2e7cfa8
commit 0c64632986
10 changed files with 107 additions and 19 deletions
@@ -87,9 +87,8 @@ export class ContactsPage implements OnInit {
username: username,
}
this.chatService.createRoom(body).subscribe(async(res) => {
this.room = res['room'];
await this.ChatSystemService.getAllRooms();
this.ChatSystemService.getAllRooms();
this.getDirectMessage(this.room._id);
});
}
@@ -102,7 +101,7 @@ export class ContactsPage implements OnInit {
async openModal(roomId:any){
this.close();
console.log('open chat')
const modal = await this.modalController.create({
component: MessagesPage,