fix: set deleted mark for service message

This commit is contained in:
AlexeyZavar 2025-03-15 00:10:52 +03:00
parent 206a15191f
commit b3552d8c2c

View file

@ -3109,8 +3109,13 @@ void HistoryItem::setPostAuthor(const QString &postAuthor) {
void HistoryItem::setDeleted() {
_deleted = true;
history()->owner().requestItemViewRefresh(this);
history()->owner().requestItemResize(this);
if (isService()) {
const auto settings = &AyuSettings::getInstance();
setAyuHint(settings->deletedMark);
} else {
history()->owner().requestItemViewRefresh(this);
history()->owner().requestItemResize(this);
}
}
bool HistoryItem::isDeleted() const {