Send webtrix documents on chat from gabinete digital process

This commit is contained in:
Eudes Inácio
2022-05-20 15:54:35 +01:00
parent 6b5a2169ed
commit fe7dd8f45a
4 changed files with 29 additions and 1 deletions
@@ -107,7 +107,30 @@ export class NewGroupPage implements OnInit{
}
this.wsChatMethodsService.subscribeToRoomUpdate(res.result.rid, res.result);
console.log(res.result.rid)
console.log(this.documents)
this.addGroupMessage.emit(res.result.rid);
this.documents.forEach(element => {
this.wsChatMethodsService.getGroupRoom(res.result.rid).send({
file: {
"name": element.Assunto,
"type": "application/webtrix",
"ApplicationId": element.ApplicationId,
"DocId": element.DocId,
"Assunto": element.Assunto,
},
temporaryData: res,
attachments: [{
"title": element.Assunto,
"description": element.Assunto,
"title_link_download": true,
"type": "webtrix",
"text": element.Assunto,
"thumb_url": "https://static.ichimura.ed.jp/uploads/2017/10/pdf-icon.png",
}],
})
});
this.wsChatMethodsService.getAllRooms()
}