diff options
author | Black Hat <bhat@encom.eu.org> | 2019-12-28 16:12:10 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-28 16:12:10 +0800 |
commit | 16d6700950f5f0ebd71481efd5e1a24f04e3c651 (patch) | |
tree | 56940b9c3dc25d68af0adddd1ce9c0f29276a34e /lib | |
parent | 0373153481e4a08f1dfb194e672188d74ce07d85 (diff) | |
download | libquotient-16d6700950f5f0ebd71481efd5e1a24f04e3c651.tar.gz libquotient-16d6700950f5f0ebd71481efd5e1a24f04e3c651.zip |
isEditing(): fix a bug in replacing events
Diffstat (limited to 'lib')
-rw-r--r-- | lib/room.cpp | 2 |
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; } |