Send edited messages support
Co-authored-by: Fedor Indutnyy <indutny@signal.org>
This commit is contained in:
parent
d380817a44
commit
1f2cde6d04
79 changed files with 2507 additions and 1175 deletions
|
@ -245,6 +245,7 @@ const createProps = (overrideProps: Partial<Props> = {}): Props => ({
|
|||
attachments: overrideProps.attachments,
|
||||
author: overrideProps.author || getDefaultConversation(),
|
||||
bodyRanges: overrideProps.bodyRanges,
|
||||
canEditMessage: true,
|
||||
canReact: true,
|
||||
canReply: true,
|
||||
canDownload: true,
|
||||
|
@ -330,6 +331,7 @@ const createProps = (overrideProps: Partial<Props> = {}): Props => ({
|
|||
overrideProps.toggleSelectMessage == null
|
||||
? action('toggleSelectMessage')
|
||||
: overrideProps.toggleSelectMessage,
|
||||
setMessageToEdit: action('setMessageToEdit'),
|
||||
shouldCollapseAbove: isBoolean(overrideProps.shouldCollapseAbove)
|
||||
? overrideProps.shouldCollapseAbove
|
||||
: false,
|
||||
|
@ -878,6 +880,13 @@ Error.args = {
|
|||
text: 'I hope you get this.',
|
||||
};
|
||||
|
||||
export const EditError = Template.bind({});
|
||||
EditError.args = {
|
||||
status: 'error',
|
||||
isEditedMessage: true,
|
||||
text: 'I hope you get this.',
|
||||
};
|
||||
|
||||
export const Paused = Template.bind({});
|
||||
Paused.args = {
|
||||
status: 'paused',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue