mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-21 13:55:51 +00:00
fix errors
This commit is contained in:
@@ -81,16 +81,27 @@ export class ContactsPage implements OnInit {
|
||||
}
|
||||
|
||||
clicked() {}
|
||||
loading = false
|
||||
|
||||
createRoom(username:string) {
|
||||
|
||||
if(this.loading) {
|
||||
return
|
||||
}
|
||||
|
||||
this.loading = true
|
||||
let body = {
|
||||
username: username,
|
||||
}
|
||||
this.chatService.createRoom(body).subscribe(async(res) => {
|
||||
this.room = res['room'];
|
||||
this.ChatSystemService.getAllRooms();
|
||||
await this.ChatSystemService.getAllRooms();
|
||||
this.getDirectMessage(this.room._id);
|
||||
this.loading = false
|
||||
}, ()=> {
|
||||
this.loading = false
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
getDirectMessage(roomId:any) {
|
||||
|
||||
Reference in New Issue
Block a user