mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-11 11:47:09 +02:00
fix: set deleted mark for service message
This commit is contained in:
parent
206a15191f
commit
b3552d8c2c
1 changed files with 7 additions and 2 deletions
|
@ -3109,8 +3109,13 @@ void HistoryItem::setPostAuthor(const QString &postAuthor) {
|
||||||
void HistoryItem::setDeleted() {
|
void HistoryItem::setDeleted() {
|
||||||
_deleted = true;
|
_deleted = true;
|
||||||
|
|
||||||
history()->owner().requestItemViewRefresh(this);
|
if (isService()) {
|
||||||
history()->owner().requestItemResize(this);
|
const auto settings = &AyuSettings::getInstance();
|
||||||
|
setAyuHint(settings->deletedMark);
|
||||||
|
} else {
|
||||||
|
history()->owner().requestItemViewRefresh(this);
|
||||||
|
history()->owner().requestItemResize(this);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool HistoryItem::isDeleted() const {
|
bool HistoryItem::isDeleted() const {
|
||||||
|
|
Loading…
Add table
Reference in a new issue