podchat 12.5.3 → 12.5.4-snapshot.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/package.json +2 -2
- package/src/chat.js +12 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "podchat",
|
|
3
|
-
"version": "12.5.
|
|
3
|
+
"version": "12.5.4-snapshot.1",
|
|
4
4
|
"description": "Javascript SDK to use POD's Chat Service",
|
|
5
5
|
"main": "./src/chat.js",
|
|
6
6
|
"scripts": {
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"indexeddbshim": "^3.10.0",
|
|
40
40
|
"jsdom": "^18.0.0",
|
|
41
41
|
"mime": "^2.4.4",
|
|
42
|
-
"podasync": "^2.8.3",
|
|
42
|
+
"podasync": "^2.8.3-snapshot.1",
|
|
43
43
|
"query-string": "^6.8.1",
|
|
44
44
|
"request": "^2.88.0"
|
|
45
45
|
},
|
package/src/chat.js
CHANGED
|
@@ -1649,7 +1649,8 @@
|
|
|
1649
1649
|
ttl: (params.messageTtl > 0)
|
|
1650
1650
|
? params.messageTtl
|
|
1651
1651
|
: messageTtl
|
|
1652
|
-
}
|
|
1652
|
+
},
|
|
1653
|
+
uniqueId: messageVO.uniqueId
|
|
1653
1654
|
};
|
|
1654
1655
|
|
|
1655
1656
|
asyncClient.send(data, function (res) {
|
|
@@ -10825,12 +10826,18 @@
|
|
|
10825
10826
|
};
|
|
10826
10827
|
|
|
10827
10828
|
if (!returnData.hasError) {
|
|
10828
|
-
for(var i in result.result) {
|
|
10829
|
-
|
|
10830
|
-
}
|
|
10829
|
+
// for(var i in result.result) {
|
|
10830
|
+
// stackArr.push(result.result[i]);
|
|
10831
|
+
// }
|
|
10832
|
+
stackArr.push(...result.result);
|
|
10831
10833
|
|
|
10832
10834
|
consoleLogging && console.log("[SDK][exportChat] a step passed...");
|
|
10833
|
-
wantedCount = wantedCount > result.contentCount ? result.contentCount : wantedCount;
|
|
10835
|
+
// wantedCount = wantedCount > result.contentCount ? result.contentCount : wantedCount;
|
|
10836
|
+
|
|
10837
|
+
if(result.result.length < stepCount) {
|
|
10838
|
+
wantedCount = stackArr.length
|
|
10839
|
+
}
|
|
10840
|
+
|
|
10834
10841
|
setTimeout(function () {
|
|
10835
10842
|
fireEvent('threadEvents', {
|
|
10836
10843
|
type: 'EXPORT_CHAT',
|