Fix edited messages.
This commit is contained in:
Submodule include/libQuotient updated: 04960510df...16d6700950
@@ -401,7 +401,7 @@ QVariant MessageEventModel::data(const QModelIndex& idx, int role) const {
|
||||
return EventStatus::Hidden;
|
||||
|
||||
if (auto e = eventCast<const RoomMessageEvent>(&evt)) {
|
||||
if (!e->replacedEvent().isEmpty()) {
|
||||
if (!e->replacedEvent().isEmpty() && e->replacedEvent() != e->id()) {
|
||||
return EventStatus::Hidden;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -105,7 +105,7 @@ QString SpectralRoom::lastEvent() const {
|
||||
continue;
|
||||
|
||||
if (auto e = eventCast<const RoomMessageEvent>(evt)) {
|
||||
if (!e->replacedEvent().isEmpty()) {
|
||||
if (!e->replacedEvent().isEmpty() && e->replacedEvent() != e->id()) {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user