podchat-browser 12.9.17 → 12.9.18-snapshot.0

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.
@@ -1 +1 @@
1
- {"version":"12.9.17","date":"۱۴۰۴/۶/۱","VersionInfo":"Release: true, Snapshot: false, Is For Test: false"}
1
+ {"version":"12.9.18-snapshot.0","date":"۱۴۰۴/۶/۴","VersionInfo":"Release: false, Snapshot: true, Is For Test: true"}
@@ -156,8 +156,14 @@ function HistoryItem(threadId, params, list) {
156
156
  }
157
157
  }
158
158
  } else {
159
+ var _resCachedData$;
160
+
159
161
  resCachedData = config.list.slice(0, count);
160
162
 
163
+ if (lastMessageTime !== ((_resCachedData$ = resCachedData[0]) === null || _resCachedData$ === void 0 ? void 0 : _resCachedData$.timeMiliSeconds)) {
164
+ return [];
165
+ }
166
+
161
167
  if (!this.checkSequence(resCachedData)) {
162
168
  return [];
163
169
  }
@@ -47802,7 +47802,7 @@ FilterXSS.prototype.process = function (html) {
47802
47802
  module.exports = FilterXSS;
47803
47803
 
47804
47804
  },{"./default":268,"./parser":270,"./util":271,"cssfilter":131}],273:[function(require,module,exports){
47805
- module.exports={"version":"12.9.17","date":"۱۴۰۴/۶/۱","VersionInfo":"Release: true, Snapshot: false, Is For Test: false"}
47805
+ module.exports={"version":"12.9.18-snapshot.0","date":"۱۴۰۴/۶/۴","VersionInfo":"Release: false, Snapshot: true, Is For Test: true"}
47806
47806
  },{}],274:[function(require,module,exports){
47807
47807
  "use strict";
47808
47808
 
@@ -70246,8 +70246,14 @@ function HistoryItem(threadId, params, list) {
70246
70246
  }
70247
70247
  }
70248
70248
  } else {
70249
+ var _resCachedData$;
70250
+
70249
70251
  resCachedData = config.list.slice(0, count);
70250
70252
 
70253
+ if (lastMessageTime !== ((_resCachedData$ = resCachedData[0]) === null || _resCachedData$ === void 0 ? void 0 : _resCachedData$.timeMiliSeconds)) {
70254
+ return [];
70255
+ }
70256
+
70251
70257
  if (!this.checkSequence(resCachedData)) {
70252
70258
  return [];
70253
70259
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "podchat-browser",
3
- "version": "12.9.17",
3
+ "version": "12.9.18-snapshot.0",
4
4
  "description": "Javascript SDK to use POD's Chat Service - Browser Only",
5
5
  "main": "./dist/node/chat.js",
6
6
  "scripts": {
@@ -1 +1 @@
1
- {"version":"12.9.17","date":"۱۴۰۴/۶/۱","VersionInfo":"Release: true, Snapshot: false, Is For Test: false"}
1
+ {"version":"12.9.18-snapshot.0","date":"۱۴۰۴/۶/۴","VersionInfo":"Release: false, Snapshot: true, Is For Test: true"}
@@ -113,6 +113,9 @@ function HistoryItem(threadId, params, list) {
113
113
  }
114
114
  } else {
115
115
  resCachedData = config.list.slice(0, count);
116
+ if(lastMessageTime!==resCachedData[0]?.timeMiliSeconds){
117
+ return []
118
+ }
116
119
  if (!this.checkSequence(resCachedData)) {
117
120
  return []
118
121
  }