Fixed upload feature

Added new design to message options
This commit is contained in:
tiago.kayaya
2021-10-06 17:27:49 +01:00
parent 9a629628f3
commit cfd896dfca
8 changed files with 120 additions and 30 deletions
+8
View File
@@ -129,6 +129,14 @@ export class ChatService {
return this.http.post(environment.apiChatUrl+'chat.sendMessage', body, opts);
}
uploadFile(formData:any, rid:string){
let url = environment.apiChatUrl+'rooms.upload/'+rid;
let opts = {
headers: this.headers,
}
return this.http.post(url, formData, opts);
}
deleteMessage(body:any){
let opts = {
headers: this.headers,