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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-wiguet-chatweb",
3
- "version": "0.1.40",
3
+ "version": "0.1.41",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist",
@@ -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.urlFile
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 () => {