mobile image preview bug solved

This commit is contained in:
Eudes Inácio
2022-07-06 16:26:15 +01:00
parent 889e308df1
commit 923a20849a
3 changed files with 711 additions and 32280 deletions
@@ -18,6 +18,6 @@
}
},
"server": {
"url": "http://192.168.1.6:8101"
"url": "http://192.168.0.37:8101"
}
}
+694 -32278
View File
File diff suppressed because it is too large Load Diff
@@ -1012,11 +1012,26 @@ export class MessagesPage implements OnInit, AfterViewInit, OnDestroy {
this.downloadFileFromBrowser("file", str)
}
} else {
if (msg.file.type == "application/img") {
const modal = await this.modalController.create({
component: ViewMediaPage,
cssClass: 'modal modal-desktop',
componentProps: {
image: msg.attachments[0].image_url,
type: msg.file.type,
username: msg.u.name,
_updatedAt: msg._updatedAt
}
});
modal.present();
} else {
this.openFile(str, msg.attachments[0].name, msg.file.type);
}
}
}
}
}