From 16d6700950f5f0ebd71481efd5e1a24f04e3c651 Mon Sep 17 00:00:00 2001 From: Black Hat Date: Sat, 28 Dec 2019 16:12:10 +0800 Subject: isEditing(): fix a bug in replacing events --- lib/room.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/room.cpp') 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(*ep)) return true; if (auto* msgEvent = eventCast(ep)) - return msgEvent->replacedEvent().isEmpty(); + return !msgEvent->replacedEvent().isEmpty(); return false; } -- cgit v1.2.3