This commit is contained in:
Peter Maquiran
2022-02-07 20:52:07 +01:00
parent c74594fe49
commit cef4c39d6e
5 changed files with 18 additions and 6 deletions
@@ -460,6 +460,7 @@ export class GroupMessagesPage implements OnInit, AfterViewInit, OnDestroy {
temporaryData: formData,
attachments: [{
"title": capturedImageTitle ,
"image_url": capturedImage, // rocketchat
"text": "description",
"title_link_download": false,
}]
@@ -539,6 +540,7 @@ export class GroupMessagesPage implements OnInit, AfterViewInit, OnDestroy {
attachments: [{
"title": file.name ,
"text": "description",
"image_url": imageData,
"title_link_download": false,
}]
})
@@ -543,6 +543,7 @@ export class MessagesPage implements OnInit, AfterViewInit, OnDestroy {
"image_url": capturedImage
},
attachments: [{
"image_url": capturedImage,
"title": capturedImageTitle ,
"text": "description",
"title_link_download": false,
@@ -624,6 +625,7 @@ export class MessagesPage implements OnInit, AfterViewInit, OnDestroy {
temporaryData: formData,
attachments: [{
"title": file.name ,
"image_url": imageData,
"text": "description",
"title_link_download": false,
}]
+8 -3
View File
@@ -162,9 +162,12 @@ export class AuthService {
await this.storage.set(guid.path, message.file.image_url).then(() => {
console.log('add picture to chat IMAGE SAVED')
message.getFileFromDb()
return true
});
} catch(e) {}
return true
} catch(e) {
return false
}
} else {
try {
@@ -175,7 +178,9 @@ export class AuthService {
message.attachments[0].message_link = url_no_options
return true
} catch(e) {}
} catch(e) {
return false
}
}
}
@@ -563,6 +563,7 @@ export class GroupMessagesPage implements OnInit, OnChanges, AfterViewInit, OnDe
},
attachments: [{
"title": capturedImageTitle ,
"image_url": capturedImage,
"text": "description",
"title_link_download": false,
}],
@@ -647,6 +648,7 @@ export class GroupMessagesPage implements OnInit, OnChanges, AfterViewInit, OnDe
temporaryData: formData,
attachments: [{
"title": file.name ,
"image_url": imageData,
"text": "description",
"title_link_download": false,
}]
@@ -466,6 +466,7 @@ export class MessagesPage implements OnInit, OnChanges, AfterViewInit, OnDestroy
temporaryData: formData,
attachments: [{
"title": capturedImageTitle ,
"image_url": capturedImage,
"text": "description",
"title_link_download": false,
}]
@@ -536,15 +537,15 @@ export class MessagesPage implements OnInit, OnChanges, AfterViewInit, OnDestroy
this.wsChatMethodsService.getDmRoom(roomId).send({
file: {
"type": file.type,
"type": "application/img",
"guid": '',
"image_url": imageData,
"image_url": imageData, // GPR
},
attachments: [{
"title": file.name ,
"name": file.name ,
// "text": "description",
"image_url": imageData,
"image_url": imageData, // rocketchat
"title_link_download": false,
}],
temporaryData: formData