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.
- package/assets/version.d.ts +1 -1
- package/bundles/stream-chat-angular.umd.js +5 -17
- package/bundles/stream-chat-angular.umd.js.map +1 -1
- package/esm2015/assets/version.js +2 -2
- package/esm2015/lib/message-actions-box/message-actions-box.component.js +5 -17
- package/esm2015/lib/types.js +1 -1
- package/fesm2015/stream-chat-angular.js +5 -17
- package/fesm2015/stream-chat-angular.js.map +1 -1
- package/lib/message-actions-box/message-actions-box.component.d.ts +1 -1
- package/lib/types.d.ts +2 -2
- package/package.json +1 -1
- package/src/assets/version.ts +1 -1
package/assets/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "3.0.0-beta.
|
|
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.
|
|
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
|
|
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 (
|
|
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
|
|
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 (
|
|
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
|
{
|