Clean up.
This commit is contained in:
@@ -171,6 +171,13 @@ void SpectralRoom::onAddHistoricalTimelineEvents(rev_iter_t from) {
|
|||||||
[this](const TimelineItem& ti) { checkForHighlights(ti); });
|
[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() {
|
void SpectralRoom::countChanged() {
|
||||||
if (displayed() && !hasUnreadMessages()) {
|
if (displayed() && !hasUnreadMessages()) {
|
||||||
resetNotificationCount();
|
resetNotificationCount();
|
||||||
|
|||||||
@@ -284,6 +284,7 @@ class SpectralRoom : public Room {
|
|||||||
|
|
||||||
void onAddNewTimelineEvents(timeline_iter_t from) override;
|
void onAddNewTimelineEvents(timeline_iter_t from) override;
|
||||||
void onAddHistoricalTimelineEvents(rev_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);
|
static QString markdownToHTML(const QString& plaintext);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user