stream-chat-angular 3.0.0-beta.5 → 3.0.0-beta.6

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.0.0-beta.5";
1
+ export declare const version = "3.0.0-beta.6";
@@ -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.0.0-beta.5';
357
+ var version = '3.0.0-beta.6';
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.
@@ -3424,15 +3424,14 @@
3424
3424
  actionName: 'quote',
3425
3425
  actionLabelOrTranslationKey: 'streamChat.Reply',
3426
3426
  actionHandler: function (message) { return _this.channelService.selectMessageToQuote(message); },
3427
- isVisible: function (enabledActions, isMine, message) { return (enabledActions.indexOf('quote') !== -1 ||
3428
- enabledActions.indexOf('quote-message') !== -1) &&
3427
+ isVisible: function (enabledActions, isMine, message) { return enabledActions.indexOf('quote-message') !== -1 &&
3429
3428
  !(message === null || message === void 0 ? void 0 : message.quoted_message); },
3430
3429
  },
3431
3430
  {
3432
3431
  actionName: 'pin',
3433
3432
  actionLabelOrTranslationKey: function () { var _a; return ((_a = _this.message) === null || _a === void 0 ? void 0 : _a.pinned) ? 'streamChat.Unpin' : 'streamChat.Pin'; },
3434
3433
  actionHandler: function () { return alert('Feature not yet implemented'); },
3435
- isVisible: function (enabledActions) { return enabledActions.indexOf('pin') !== -1; },
3434
+ isVisible: function () { return false; },
3436
3435
  },
3437
3436
  {
3438
3437
  actionName: 'flag',
@@ -3456,15 +3455,7 @@
3456
3455
  }
3457
3456
  });
3458
3457
  }); },
3459
- isVisible: function (enabledActions, isMine) { return (enabledActions.indexOf('flag') !== -1 ||
3460
- enabledActions.indexOf('flag-message') !== -1) &&
3461
- !isMine; },
3462
- },
3463
- {
3464
- actionName: 'mute',
3465
- actionLabelOrTranslationKey: 'streamChat.Mute',
3466
- actionHandler: function () { return alert('Feature not yet implemented'); },
3467
- isVisible: function (enabledActions) { return enabledActions.indexOf('mute') !== -1; },
3458
+ isVisible: function (enabledActions, isMine) { return enabledActions.indexOf('flag-message') !== -1 && !isMine; },
3468
3459
  },
3469
3460
  {
3470
3461
  actionName: 'edit',
@@ -3473,10 +3464,7 @@
3473
3464
  _this.isEditing.emit(true);
3474
3465
  _this.isEditModalOpen = true;
3475
3466
  },
3476
- isVisible: function (enabledActions, isMine) { return ((enabledActions.indexOf('edit') !== -1 ||
3477
- enabledActions.indexOf('update-own-message') !== -1) &&
3478
- isMine) ||
3479
- enabledActions.indexOf('edit-any') !== -1 ||
3467
+ isVisible: function (enabledActions, isMine) { return (enabledActions.indexOf('update-own-message') !== -1 && isMine) ||
3480
3468
  enabledActions.indexOf('update-any-message') !== -1; },
3481
3469
  },
3482
3470
  {