Clean up.

This commit is contained in:
Black Hat
2019-08-04 18:47:09 +08:00
parent 31f13880a8
commit c4ae77dd62
2 changed files with 8 additions and 0 deletions

View File

@@ -171,6 +171,13 @@ void SpectralRoom::onAddHistoricalTimelineEvents(rev_iter_t from) {
[this](const TimelineItem& ti) { checkForHighlights(ti); });
}
void SpectralRoom::onRedaction(const RoomEvent& prevEvent,
const RoomEvent& /*after*/) {
if (const auto& e = eventCast<const ReactionEvent>(&prevEvent)) {
emit updatedEvent(e->relation().eventId);
}
}
void SpectralRoom::countChanged() {
if (displayed() && !hasUnreadMessages()) {
resetNotificationCount();