mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
updating edited messages dependencies (replies, edit / reply / pinned bar), postponing notification about pinned message while the message itself is not yet available
This commit is contained in:
@@ -493,7 +493,7 @@ void RichDeleteMessageBox::onDelete() {
|
||||
QVector<MsgId> toDestroy;
|
||||
for (History::Blocks::const_iterator i = h->blocks.cbegin(), e = h->blocks.cend(); i != e; ++i) {
|
||||
for (HistoryBlock::Items::const_iterator j = (*i)->items.cbegin(), n = (*i)->items.cend(); j != n; ++j) {
|
||||
if ((*j)->from() == _from && (*j)->type() == HistoryItemMsg) {
|
||||
if ((*j)->from() == _from && (*j)->type() == HistoryItemMsg && (*j)->canDelete()) {
|
||||
toDestroy.push_back((*j)->id);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user