From 4aec891b1f0222ff74e49e2a978569f0599071e2 Mon Sep 17 00:00:00 2001 From: James Graham Date: Wed, 16 Apr 2025 18:28:33 +0000 Subject: [PATCH] Fix clearing edit ID when an attachment is added Fix clearing edit ID when an attachment is added. You can reply with an attachment but not edit and attachment simultaneously --- src/libneochat/chatbarcache.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/libneochat/chatbarcache.cpp b/src/libneochat/chatbarcache.cpp index 488254fb6..234e64d28 100644 --- a/src/libneochat/chatbarcache.cpp +++ b/src/libneochat/chatbarcache.cpp @@ -194,6 +194,11 @@ void ChatBarCache::setAttachmentPath(const QString &attachmentPath) m_relationType = None; const auto oldEventId = std::exchange(m_relationId, QString()); Q_EMIT relationIdChanged(oldEventId, m_relationId); +#else + if (m_relationType == Edit) { + const auto oldEventId = std::exchange(m_relationId, QString()); + Q_EMIT relationIdChanged(oldEventId, m_relationId); + } #endif }