aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBlack Hat <bhat@encom.eu.org>2019-12-28 16:12:10 +0800
committerGitHub <noreply@github.com>2019-12-28 16:12:10 +0800
commit16d6700950f5f0ebd71481efd5e1a24f04e3c651 (patch)
tree56940b9c3dc25d68af0adddd1ce9c0f29276a34e
parent0373153481e4a08f1dfb194e672188d74ce07d85 (diff)
downloadlibquotient-16d6700950f5f0ebd71481efd5e1a24f04e3c651.tar.gz
libquotient-16d6700950f5f0ebd71481efd5e1a24f04e3c651.zip
isEditing(): fix a bug in replacing events
-rw-r--r--lib/room.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/room.cpp b/lib/room.cpp
index b6925be5..696a5f1b 100644
--- a/lib/room.cpp
+++ b/lib/room.cpp
@@ -2137,7 +2137,7 @@ inline bool isEditing(const RoomEventPtr& ep)
if (is<RedactionEvent>(*ep))
return true;
if (auto* msgEvent = eventCast<RoomMessageEvent>(ep))
- return msgEvent->replacedEvent().isEmpty();
+ return !msgEvent->replacedEvent().isEmpty();
return false;
}