Hide edit event.
Also libQuotient refuses to compile.
This commit is contained in:
@@ -138,7 +138,7 @@ void MessageEventModel::setRoom(SpectralRoom* room) {
|
||||
});
|
||||
connect(m_currentRoom, &Room::updatedEvent, this,
|
||||
[this](const QString& eventId) {
|
||||
refreshEventRoles(eventId, {ReactionRole});
|
||||
refreshEventRoles(eventId, {ReactionRole, Qt::DisplayRole});
|
||||
});
|
||||
connect(m_currentRoom, &Room::fileTransferProgress, this,
|
||||
&MessageEventModel::refreshEvent);
|
||||
@@ -381,6 +381,12 @@ QVariant MessageEventModel::data(const QModelIndex& idx, int role) const {
|
||||
static_cast<const StateEventBase&>(evt).repeatsState())
|
||||
return EventStatus::Hidden;
|
||||
|
||||
if (auto e = eventCast<const RoomMessageEvent>(&evt)) {
|
||||
if (!e->replacedEvent().isEmpty()) {
|
||||
return EventStatus::Hidden;
|
||||
}
|
||||
}
|
||||
|
||||
if (m_currentRoom->connection()->isIgnored(
|
||||
m_currentRoom->user(evt.senderId())))
|
||||
return EventStatus::Hidden;
|
||||
|
||||
Reference in New Issue
Block a user