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