allow setting same macro content again

This commit is contained in:
Abhinav Raut
2025-12-24 00:13:53 +05:30
parent 67ade61250
commit b1e0295c2b
@@ -337,12 +337,12 @@ const processSend = async () => {
*/
watch(
() => conversationStore.getMacro('reply').id,
(newId, oldId) => {
(newId) => {
// No macro set.
if (!newId) return
// If macro ID has changed and there is message content, update editor content.
if (newId !== oldId && conversationStore.getMacro('reply').message_content) {
// If macro has message content, set it in the editor.
if (conversationStore.getMacro('reply').message_content) {
htmlContent.value = conversationStore.getMacro('reply').message_content
}
},