diff --git a/assets/zip/personnal-data-export-navigator/Export.html b/assets/zip/personnal-data-export-navigator/Export.html
index 364add2d..e407a539 100644
--- a/assets/zip/personnal-data-export-navigator/Export.html
+++ b/assets/zip/personnal-data-export-navigator/Export.html
@@ -178,8 +178,8 @@
Number |
Date |
+ File (if any) |
Message |
- Image |
diff --git a/assets/zip/personnal-data-export-navigator/assets/js/categories/allConversationMessages.js b/assets/zip/personnal-data-export-navigator/assets/js/categories/allConversationMessages.js
index 7d38ff09..657eee7c 100644
--- a/assets/zip/personnal-data-export-navigator/assets/js/categories/allConversationMessages.js
+++ b/assets/zip/personnal-data-export-navigator/assets/js/categories/allConversationMessages.js
@@ -17,22 +17,39 @@ function ApplyAllConversationMessages(){
appendTo: target,
type: "tr",
innerHTML:
- "" + message.ID + " | " +
- "" + timeToStr(message.time_insert) + " | " +
- "" + message.message + " | "
+ "" + message.id + " | " +
+ "" + timeToStr(message.time_sent) + " | " +
+ " | "
+
});
//Add conversation image (if any)
- if(message.image_path != null){
- let imageElem = createElem2({
- appendTo: messageEl,
- type: "img",
- class: "conversation-img"
- });
+ if(message.file != null){
+ let cell = messageEl.querySelector(".file-cell");
- applyURLToImage(imageElem, message.image_path);
+ if (message.file.type.startsWith("image/")) {
+ let imageElem = createElem2({
+ appendTo: cell,
+ type: "img",
+ class: "conversation-img"
+ });
+
+ applyURLToImage(imageElem, message.file.url);
+ }
+
+ else {
+ let link = createElem2({
+ appendTo: cell,
+ type: "a",
+ href: getFilePathFromURL(message.file.url),
+ innerHTML: message.file.url
+ })
+ link.target = "_blank"
+ }
}
+ if (message.message)
+ messageEl.innerHTML += "" + message.message + " | ";
});
}
\ No newline at end of file
diff --git a/assets/zip/personnal-data-export-navigator/assets/js/categories/conversations.js b/assets/zip/personnal-data-export-navigator/assets/js/categories/conversations.js
index 39c657bb..7d929231 100644
--- a/assets/zip/personnal-data-export-navigator/assets/js/categories/conversations.js
+++ b/assets/zip/personnal-data-export-navigator/assets/js/categories/conversations.js
@@ -186,6 +186,7 @@ function ApplyConversations(){
});
messageFileContainer.innerHTML =
+ "Name: " + message.file.name +
"Size: "+ fileSizeToHuman(message.file.size) + "
" +
"Type: " + message.file.type + "
" +
"URL: "+message.file.url+"
";