This commit is contained in:
tiago.kayaya
2022-01-24 15:28:36 +01:00
parent 952cd81963
commit e65b91ab08
2 changed files with 4 additions and 4 deletions
@@ -314,7 +314,7 @@ export class GroupMessagesPage implements OnInit, OnChanges, AfterViewInit, OnDe
}
sendMessage() {
this.wsChatMethodsService.getDmRoom(this.roomId).send(this.message)
this.wsChatMethodsService.getGroupRoom(this.roomId).send(this.message)
this.message = "";
}
@@ -807,7 +807,7 @@ export class GroupMessagesPage implements OnInit, OnChanges, AfterViewInit, OnDe
console.log('FILE TYPE 33', msg.file.type)
} else if (event.type === HttpEventType.Response) {
this.downloadFile = 'data:image/jpeg;base64,' + btoa(new Uint8Array(event.body).reduce((data, byte) => data + String.fromCharCode(byte), ''));
msg.file = {
guid: msg.file.guid,
image_url: this.downloadFile,