podchat-browser 12.9.20-snapshot.7 → 12.9.20

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/changelog.md CHANGED
@@ -5,6 +5,19 @@ to see complete list of changelog please visit [ChangeLog](http://gp.fanapsoft.i
5
5
 
6
6
  ## [Unreleased]
7
7
 
8
+ ## [12.9.20] 28-06-2026
9
+
10
+ ### Added
11
+ - New file download methods
12
+
13
+ ### Fixed
14
+ - Bugs in new contact methods and contacts cache
15
+
16
+ ### Changed
17
+ - Updated internal packages
18
+ - Improved chat ping functionality
19
+
20
+
8
21
  ## [12.9.19] 30-05-2026
9
22
 
10
23
  ### Added
@@ -1 +1 @@
1
- {"version":"12.9.20-snapshot.7","date":"۱۴۰۵/۳/۲۵","VersionInfo":"Release: false, Snapshot: true, Is For Test: true"}
1
+ {"version":"12.9.20","date":"۱۴۰۵/۴/۷","VersionInfo":"Release: true, Snapshot: false, Is For Test: false"}
package/dist/node/chat.js CHANGED
@@ -276,7 +276,8 @@ function Chat(params) {
276
276
  case 3:
277
277
  // CLOSED
278
278
  app.store.reactionSummaries.removeAllMessages();
279
- app.store.reactionsList.removeAllMessages(); // store.reactionsList.invalidateCache();
279
+ app.store.reactionsList.removeAllMessages();
280
+ app.store.folders.removeAll(); // store.reactionsList.invalidateCache();
280
281
 
281
282
  app.messenger.chatState = false;
282
283
  app.messenger.stopChatPing();
@@ -2596,13 +2597,14 @@ function Chat(params) {
2596
2597
  * If error code is 21, Token is invalid &
2597
2598
  * user should logged out
2598
2599
  */
2599
- //if (messageContent.code === 21) {
2600
- // TODO: Temporarily removed due to unknown side-effects
2601
- // app.messenger.chatState = false;
2602
- // asyncClient.logout();
2603
- // clearChatServerCaches();
2604
- //}
2605
2600
 
2601
+
2602
+ if (messageContent.code === 21) {
2603
+ app.messenger.stopChatPing(); // TODO: Temporarily removed due to unknown side-effects
2604
+ // app.messenger.chatState = false;
2605
+ // asyncClient.logout();
2606
+ // clearChatServerCaches();
2607
+ }
2606
2608
  /* If the error code is 208, so the user
2607
2609
  * has been blocked cause of spam activity
2608
2610
  */
@@ -8637,6 +8639,7 @@ function Chat(params) {
8637
8639
 
8638
8640
  publicized.setToken = function (newToken) {
8639
8641
  if (typeof newToken !== 'undefined') {
8642
+ app.messenger.startChatPing();
8640
8643
  app.sdkParams.token = newToken;
8641
8644
 
8642
8645
  if (!app.store.user.get() || !app.store.user.get().id) {
@@ -9196,6 +9199,7 @@ function Chat(params) {
9196
9199
  params.webrtcConfig = config.webrtcConfig;
9197
9200
  params.protocol = config.protocol;
9198
9201
  (0, _sdkParams.initSdkParams)(app, params);
9202
+ app.messenger.startChatPing();
9199
9203
  protocolManager.resetRetries();
9200
9204
  protocolManager.resetTimerTime();
9201
9205
  protocolManager.switchProtocol(app.sdkParams.protocol);