vue-wiguet-chatweb 0.1.40 → 0.1.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dto/app.dto.d.ts +1 -0
- package/dist/store/index.d.ts +1 -0
- package/dist/style.css +1 -1
- package/dist/vue-wiguet-chatweb.js +949 -932
- package/dist/vue-wiguet-chatweb.umd.cjs +9 -9
- package/package.json +1 -1
- package/src/components/Chat.vue +10 -1
package/package.json
CHANGED
package/src/components/Chat.vue
CHANGED
@@ -44,7 +44,8 @@
|
|
44
44
|
@on-qualifying="(args) => onQualifying(args)"
|
45
45
|
@see="(message: Message) => {
|
46
46
|
currentDialogView = DIALOG_VIEWS.SEE
|
47
|
-
urlFileMessage = message.
|
47
|
+
urlFileMessage = message.thumbnailFile;
|
48
|
+
verImagenFirmada(message.msFileId);
|
48
49
|
dialog.title = 'Imagen'
|
49
50
|
dialog.modelValue = true
|
50
51
|
}"
|
@@ -175,6 +176,7 @@ import {
|
|
175
176
|
import IconClose from "./IconClose.vue";
|
176
177
|
import IconSend from "./IconSend.vue";
|
177
178
|
import {
|
179
|
+
generarUrlFirmadaImagen,
|
178
180
|
getMessagesApi,
|
179
181
|
sendMessageApi,
|
180
182
|
setVistoToTrueApi,
|
@@ -730,6 +732,13 @@ const dialog = reactive<IPropsDialog>({
|
|
730
732
|
title: 'Preparar imagen'
|
731
733
|
});
|
732
734
|
|
735
|
+
function verImagenFirmada(fileId?: string) {
|
736
|
+
if (!fileId) return;
|
737
|
+
generarUrlFirmadaImagen(fileId, props.tokenAuth).then((url) => {
|
738
|
+
urlFileMessage.value = url;
|
739
|
+
});
|
740
|
+
}
|
741
|
+
|
733
742
|
//
|
734
743
|
|
735
744
|
onMounted(async () => {
|