mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-05-08 08:58:38 +01:00
Fix error where removePreview is called without a conversationId
This commit is contained in:
@@ -1275,7 +1275,7 @@ export function reducer(
|
|||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (action.type === REMOVE_LINK_PREVIEW) {
|
if (action.type === REMOVE_LINK_PREVIEW && action.payload.conversationId) {
|
||||||
return updateComposerState(state, action, () => ({
|
return updateComposerState(state, action, () => ({
|
||||||
linkPreviewLoading: false,
|
linkPreviewLoading: false,
|
||||||
linkPreviewResult: undefined,
|
linkPreviewResult: undefined,
|
||||||
|
|||||||
Reference in New Issue
Block a user