mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 21:06:06 +00:00
save
This commit is contained in:
@@ -235,7 +235,7 @@ export class ChatPage implements OnInit {
|
||||
this.idSelected = '';
|
||||
this.groupRoomId = data;
|
||||
this.closeAllDesktopComponents();
|
||||
if (window.innerWidth < 801) {
|
||||
if (window.innerWidth < 701) {
|
||||
|
||||
}
|
||||
else {
|
||||
@@ -270,7 +270,7 @@ export class ChatPage implements OnInit {
|
||||
}
|
||||
openNewGroupPage() {
|
||||
this.idSelected = '';
|
||||
if (window.innerWidth < 801) {
|
||||
if (window.innerWidth < 701) {
|
||||
this.newGroup();
|
||||
}
|
||||
else {
|
||||
@@ -280,7 +280,7 @@ export class ChatPage implements OnInit {
|
||||
}
|
||||
|
||||
openEditGroupPage(rid) {
|
||||
if (window.innerWidth < 801) {
|
||||
if (window.innerWidth < 701) {
|
||||
this.editGroup(rid);
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -87,62 +87,6 @@ export class NewGroupPage implements OnInit {
|
||||
this.wsChatMethodsService.subscribeToRoomUpdate(res.result.rid, res.result);
|
||||
|
||||
//this.addGroupMessage.emit(res.result.rid);
|
||||
|
||||
/*
|
||||
let body = { "name":name, }
|
||||
this.chatService.addGroup(body).subscribe(res=>{
|
||||
console.log('group created');
|
||||
console.log(res['group']);
|
||||
|
||||
//this.addGroupMessage.emit(res['group']._id);
|
||||
|
||||
if(this.thedate){
|
||||
let countDownBody = {
|
||||
"roomId": res['group']._id,
|
||||
"customFields":{"countDownDate":this.thedate}
|
||||
}
|
||||
this.chatService.setGroupCustomFields(countDownBody).subscribe(res=>{
|
||||
console.log(res);
|
||||
});
|
||||
}
|
||||
|
||||
this.isGroupCreated = true;
|
||||
this.addContacts(res['group']);
|
||||
|
||||
if(this.documents.length > 0){
|
||||
//If there is documents add
|
||||
this.documents.forEach(async document => {
|
||||
|
||||
let url = await this.processesService.GetDocumentUrl(document.DocId, document.ApplicationId).toPromise();
|
||||
let url_no_options: string = url.replace("webTRIX.Viewer","webTRIX.Viewer.Branch1");
|
||||
|
||||
let body = {
|
||||
"message":
|
||||
{
|
||||
"rid": res['group']._id,
|
||||
"msg": "",
|
||||
"attachments": [{
|
||||
"title": document.Assunto,
|
||||
"description": document.DocTypeDesc,
|
||||
"title_link": url_no_options,
|
||||
"title_link_download": true,
|
||||
//"thumb_url": "assets/images/webtrix-logo.png",
|
||||
"message_link": url_no_options,
|
||||
"type": "webtrix"
|
||||
}],
|
||||
"file":{
|
||||
"name": document.Assunto,
|
||||
"type": "application/webtrix",
|
||||
"ApplicationId": document.ApplicationType,
|
||||
"DocId": document.Id,
|
||||
"Assunto": document.Assunto,
|
||||
}
|
||||
}
|
||||
}
|
||||
this.chatService.sendMessage(body).toPromise();
|
||||
});
|
||||
}
|
||||
}); */
|
||||
}
|
||||
|
||||
async addContacts(room){
|
||||
|
||||
Reference in New Issue
Block a user