Fix bug send msg

This commit is contained in:
Eudes Inácio
2022-04-13 21:54:31 +01:00
parent 8e10606722
commit 7cfb96bd72
5 changed files with 17 additions and 9 deletions
+7 -3
View File
@@ -182,11 +182,15 @@ export class MessageService {
}
async sendRequest(params) {
if(params?.attachments[0]?.image_url) {
delete params?.attachments[0]?.image_url
console.log(params)
if(params?.attachments) {
if(params?.attachments[0]?.image_url) {
delete params?.attachments[0]?.image_url
}
}
if(this.NetworkServiceService.getCurrentNetworkStatus() == ConnectionStatus.Online) {