Story view receipts setting

This commit is contained in:
Fedor Indutny 2022-10-25 15:18:42 -07:00 committed by GitHub
parent ad42d98774
commit 3702a67975
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
21 changed files with 161 additions and 35 deletions

View file

@ -30,10 +30,12 @@ export default {
defaultValue: true,
},
getPreferredBadge: { action: true },
hasReadReceiptSetting: {
hasViewReceiptSetting: {
control: 'boolean',
defaultValue: true,
},
hasViewsCapability: {
control: 'boolean',
defaultValue: false,
},
i18n: {
@ -243,7 +245,7 @@ InAGroupCantReply.storyName = "In a group (can't reply)";
export const ReadReceiptsTurnedOff = Template.bind({});
ReadReceiptsTurnedOff.args = {
canReply: false,
hasReadReceiptSetting: false,
hasViewReceiptSetting: false,
hasViewsCapability: true,
views: getViewsAndReplies().views,
};
@ -263,7 +265,7 @@ export const GroupReadReceiptsOff = Template.bind({});
{
const { views, replies } = getViewsAndReplies();
GroupReadReceiptsOff.args = {
hasReadReceiptSetting: false,
hasViewReceiptSetting: false,
hasViewsCapability: true,
group: {},
replies,