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();

View File

@@ -284,6 +284,7 @@ class SpectralRoom : public Room {
void onAddNewTimelineEvents(timeline_iter_t from) override;
void onAddHistoricalTimelineEvents(rev_iter_t from) override;
void onRedaction(const RoomEvent& prevEvent, const RoomEvent& after) override;
static QString markdownToHTML(const QString& plaintext);