stream-chat-angular 3.5.0 → 3.5.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.
@@ -1 +1 @@
1
- export declare const version = "3.5.0";
1
+ export declare const version = "3.5.1";
@@ -354,7 +354,7 @@
354
354
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
355
355
  }
356
356
 
357
- var version = '3.5.0';
357
+ var version = '3.5.1';
358
358
 
359
359
  /**
360
360
  * The `NotificationService` can be used to add or remove notifications. By default the [`NotificationList`](../components/NotificationListComponent.mdx) component displays the currently active notifications.
@@ -672,6 +672,7 @@
672
672
  this.usersTypingInChannelSubject = new rxjs.BehaviorSubject([]);
673
673
  this.usersTypingInThreadSubject = new rxjs.BehaviorSubject([]);
674
674
  this._shouldMarkActiveChannelAsRead = true;
675
+ this.isStateRecoveryInProgress = false;
675
676
  this.channelListSetter = function (channels) {
676
677
  var currentChannels = _this.channelsSubject.getValue() || [];
677
678
  var newChannels = channels.filter(function (c) { return !currentChannels.find(function (channel) { return channel.cid === c.cid; }); });
@@ -1251,10 +1252,32 @@
1251
1252
  var _this = this;
1252
1253
  switch (clientEvent.eventType) {
1253
1254
  case 'connection.recovered': {
1254
- this.ngZone.run(function () {
1255
- _this.reset();
1256
- void _this.init(_this.filters, _this.sort, _this.options, _this.shouldSetActiveChannel);
1257
- });
1255
+ void this.ngZone.run(function () { return __awaiter(_this, void 0, void 0, function () {
1256
+ var _a_1;
1257
+ return __generator(this, function (_h) {
1258
+ switch (_h.label) {
1259
+ case 0:
1260
+ if (this.isStateRecoveryInProgress) {
1261
+ return [2 /*return*/];
1262
+ }
1263
+ this.isStateRecoveryInProgress = true;
1264
+ this.reset();
1265
+ _h.label = 1;
1266
+ case 1:
1267
+ _h.trys.push([1, 3, , 4]);
1268
+ return [4 /*yield*/, this.init(this.filters, this.sort, this.options, this.shouldSetActiveChannel)];
1269
+ case 2:
1270
+ _h.sent();
1271
+ this.isStateRecoveryInProgress = false;
1272
+ return [3 /*break*/, 4];
1273
+ case 3:
1274
+ _a_1 = _h.sent();
1275
+ this.isStateRecoveryInProgress = false;
1276
+ return [3 /*break*/, 4];
1277
+ case 4: return [2 /*return*/];
1278
+ }
1279
+ });
1280
+ }); });
1258
1281
  break;
1259
1282
  }
1260
1283
  case 'notification.message_new': {