@onyx-p/imlib-web 1.7.0 → 1.7.1
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/index.esm.js +5 -3
- package/index.umd.js +5 -3
- package/package.json +1 -1
package/index.esm.js
CHANGED
@@ -19697,6 +19697,7 @@ const parseSingleDialogMessages = (dialogId, originalMessageList, aesKey) => {
|
|
19697
19697
|
};
|
19698
19698
|
const decodeMessageContent = (dialogMessage, aesKey) => {
|
19699
19699
|
try {
|
19700
|
+
debugger;
|
19700
19701
|
let mediaAttribute;
|
19701
19702
|
if (dialogMessage.mediaAttribute?.length) {
|
19702
19703
|
mediaAttribute = aes256Decrypt(dialogMessage.mediaAttribute, aesKey);
|
@@ -19718,11 +19719,12 @@ const decodeMessageContent = (dialogMessage, aesKey) => {
|
|
19718
19719
|
};
|
19719
19720
|
const parseMediaAttributeJson = (mediaConstructor, mediaAttribute, msgPostContent) => {
|
19720
19721
|
let mediaAttributeJson = {};
|
19721
|
-
if (mediaAttribute?.length) {
|
19722
|
-
mediaAttributeJson = JSON.parse(mediaAttribute);
|
19723
|
-
}
|
19724
19722
|
if (mediaConstructor == MessageTypes.TEXT && msgPostContent) {
|
19725
19723
|
mediaAttributeJson.content = msgPostContent;
|
19724
|
+
} else {
|
19725
|
+
if (mediaAttribute?.length) {
|
19726
|
+
mediaAttributeJson = JSON.parse(mediaAttribute);
|
19727
|
+
}
|
19726
19728
|
}
|
19727
19729
|
return mediaAttributeJson;
|
19728
19730
|
};
|
package/index.umd.js
CHANGED
@@ -19703,6 +19703,7 @@
|
|
19703
19703
|
};
|
19704
19704
|
const decodeMessageContent = (dialogMessage, aesKey) => {
|
19705
19705
|
try {
|
19706
|
+
debugger;
|
19706
19707
|
let mediaAttribute;
|
19707
19708
|
if (dialogMessage.mediaAttribute?.length) {
|
19708
19709
|
mediaAttribute = aes256Decrypt(dialogMessage.mediaAttribute, aesKey);
|
@@ -19724,11 +19725,12 @@
|
|
19724
19725
|
};
|
19725
19726
|
const parseMediaAttributeJson = (mediaConstructor, mediaAttribute, msgPostContent) => {
|
19726
19727
|
let mediaAttributeJson = {};
|
19727
|
-
if (mediaAttribute?.length) {
|
19728
|
-
mediaAttributeJson = JSON.parse(mediaAttribute);
|
19729
|
-
}
|
19730
19728
|
if (mediaConstructor == MessageTypes.TEXT && msgPostContent) {
|
19731
19729
|
mediaAttributeJson.content = msgPostContent;
|
19730
|
+
} else {
|
19731
|
+
if (mediaAttribute?.length) {
|
19732
|
+
mediaAttributeJson = JSON.parse(mediaAttribute);
|
19733
|
+
}
|
19732
19734
|
}
|
19733
19735
|
return mediaAttributeJson;
|
19734
19736
|
};
|