stream-chat-angular 4.58.0 → 4.58.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 = "4.58.0";
1
+ export declare const version = "4.58.1";
@@ -356,7 +356,7 @@
356
356
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
357
357
  }
358
358
 
359
- var version = '4.58.0';
359
+ var version = '4.58.1';
360
360
 
361
361
  /**
362
362
  * The `NotificationService` can be used to add or remove notifications. By default the [`NotificationList`](../components/NotificationListComponent.mdx) component displays the currently active notifications.
@@ -5715,9 +5715,27 @@
5715
5715
  return item.id;
5716
5716
  };
5717
5717
  MessageReactionsComponent.prototype.react = function (type) {
5718
- this.ownReactions.find(function (r) { return r.type === type; })
5719
- ? void this.channelService.removeReaction(this.messageId, type)
5720
- : void this.channelService.addReaction(this.messageId, type);
5718
+ return __awaiter(this, void 0, void 0, function () {
5719
+ var _d;
5720
+ return __generator(this, function (_e) {
5721
+ switch (_e.label) {
5722
+ case 0:
5723
+ if (!this.ownReactions.find(function (r) { return r.type === type; })) return [3 /*break*/, 2];
5724
+ return [4 /*yield*/, this.channelService.removeReaction(this.messageId, type)];
5725
+ case 1:
5726
+ _d = _e.sent();
5727
+ return [3 /*break*/, 4];
5728
+ case 2: return [4 /*yield*/, this.channelService.addReaction(this.messageId, type)];
5729
+ case 3:
5730
+ _d = _e.sent();
5731
+ _e.label = 4;
5732
+ case 4:
5733
+ _d;
5734
+ this.isSelectorOpenChange.emit(false);
5735
+ return [2 /*return*/];
5736
+ }
5737
+ });
5738
+ });
5721
5739
  };
5722
5740
  MessageReactionsComponent.prototype.isOwnReaction = function (reactionType) {
5723
5741
  return !!this.ownReactions.find(function (r) { return r.type === reactionType; });