mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-05-08 08:58:38 +01:00
Remove quote when editing a message
This commit is contained in:
@@ -893,9 +893,13 @@ export function CompositionArea({
|
|||||||
? () => scrollToMessage(conversationId, quotedMessageId)
|
? () => scrollToMessage(conversationId, quotedMessageId)
|
||||||
: undefined
|
: undefined
|
||||||
}
|
}
|
||||||
onClose={() => {
|
onClose={
|
||||||
setQuoteByMessageId(conversationId, undefined);
|
draftEditMessage
|
||||||
}}
|
? undefined
|
||||||
|
: () => {
|
||||||
|
setQuoteByMessageId(conversationId, undefined);
|
||||||
|
}
|
||||||
|
}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|||||||
@@ -1754,6 +1754,12 @@ function setMessageToEdit(
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
setQuoteByMessageId(conversationId, undefined)(
|
||||||
|
dispatch,
|
||||||
|
getState,
|
||||||
|
undefined
|
||||||
|
);
|
||||||
|
|
||||||
let attachmentThumbnail: string | undefined;
|
let attachmentThumbnail: string | undefined;
|
||||||
if (message.attachments) {
|
if (message.attachments) {
|
||||||
const thumbnailPath = message.attachments[0]?.thumbnail?.path;
|
const thumbnailPath = message.attachments[0]?.thumbnail?.path;
|
||||||
|
|||||||
Reference in New Issue
Block a user