2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Fixed build for macOS.

This commit is contained in:
23rd
2021-09-30 17:40:51 +03:00
committed by John Preston
parent 64af456d29
commit 21f7cec781
3 changed files with 18 additions and 4 deletions

View File

@@ -1761,7 +1761,7 @@ void ApiWrap::deleteAllFromUser(
? history->collectMessagesFromUserToDelete(from)
: QVector<MsgId>();
const auto channelId = peerToChannel(channel->id);
for (const auto msgId : ids) {
for (const auto &msgId : ids) {
if (const auto item = _session->data().message(channelId, msgId)) {
item->destroy();
}