-add start direct message method from mobile App

- more improvements
This commit is contained in:
tiago.kayaya
2021-01-14 16:51:16 +01:00
parent 859bccc076
commit 48dbaa7744
7 changed files with 105 additions and 29 deletions
+14 -1
View File
@@ -132,7 +132,20 @@ export class ChatService {
let opts = {
headers: this.headers,
}
return this.http.post(environment.apiChatUrl+'im.close', body, opts);
return this.http.post(environment.apiChatUrl+'im.close', body, this.options);
}
createRoom(body:any){
return this.http.post(environment.apiChatUrl+'im.create', body, this.options);
}
getDirectMessage(roomId:string){
let params = new HttpParams();
params = params.set("roomId", roomId);
let opts = {
headers: this.headers,
params: params
}
return this.http.get(environment.apiChatUrl+'im.messages', opts);
}
}