Hide edit event.

Also libQuotient refuses to compile.
This commit is contained in:
Black Hat
2019-07-31 19:07:35 +08:00
parent f7da8eebad
commit 7aa95c9289
3 changed files with 15 additions and 3 deletions

View File

@@ -129,6 +129,12 @@ QString SpectralRoom::lastEvent() {
static_cast<const StateEventBase&>(*evt).repeatsState())
continue;
if (auto e = eventCast<const RoomMessageEvent>(evt)) {
if (!e->replacedEvent().isEmpty()) {
continue;
}
}
if (connection()->isIgnored(user(evt->senderId())))
continue;
@@ -454,6 +460,6 @@ void SpectralRoom::toggleReaction(const QString& eventId,
redactEvent(redactEventId);
}
} else {
postEvent(new ReactionEvent(EventRelation::annotate(eventId, reaction)));
postReaction(eventId, reaction);
}
}