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

Strictly match message / media types.

This commit is contained in:
John Preston
2018-12-17 12:16:06 +04:00
parent 6d9f40db30
commit eb7201a55b
13 changed files with 292 additions and 303 deletions

View File

@@ -2285,10 +2285,10 @@ void HistoryWidget::messagesReceived(PeerData *peer, const MTPmessages_Messages
}
const auto ExtractFirstId = [&] {
return histList->empty() ? -1 : idFromMessage(histList->front());
return histList->empty() ? -1 : IdFromMessage(histList->front());
};
const auto ExtractLastId = [&] {
return histList->empty() ? -1 : idFromMessage(histList->back());
return histList->empty() ? -1 : IdFromMessage(histList->back());
};
const auto PeerString = [](PeerId peerId) {
if (peerIsUser(peerId)) {