Display edits. Additional condition check.
This commit is contained in:
@@ -289,7 +289,7 @@ Item {
|
||||
}
|
||||
}
|
||||
|
||||
RippleEffect {
|
||||
AutoMouseArea {
|
||||
anchors.fill: parent
|
||||
|
||||
onPrimaryClicked: {
|
||||
|
||||
@@ -138,6 +138,9 @@ void MessageEventModel::setRoom(SpectralRoom* room) {
|
||||
});
|
||||
connect(m_currentRoom, &Room::updatedEvent, this,
|
||||
[this](const QString& eventId) {
|
||||
if (eventId.isEmpty()) { // How did we get here?
|
||||
return;
|
||||
}
|
||||
refreshEventRoles(eventId, {ReactionRole, Qt::DisplayRole});
|
||||
});
|
||||
connect(m_currentRoom, &Room::fileTransferProgress, this,
|
||||
|
||||
@@ -152,7 +152,10 @@ void SpectralRoom::onAddHistoricalTimelineEvents(rev_iter_t from) {
|
||||
void SpectralRoom::onRedaction(const RoomEvent& prevEvent,
|
||||
const RoomEvent& /*after*/) {
|
||||
if (const auto& e = eventCast<const ReactionEvent>(&prevEvent)) {
|
||||
emit updatedEvent(e->relation().eventId);
|
||||
if (auto relatedEventId = e->relation().eventId;
|
||||
!relatedEventId.isEmpty()) {
|
||||
emit updatedEvent(relatedEventId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user