2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-01 06:55:58 +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

@@ -470,9 +470,9 @@ void DialogsWidget::updateDialogsOffset(
}
for (auto j = messages.size(); j != 0;) {
const auto &message = messages[--j];
if (idFromMessage(message) == msgId
&& peerFromMessage(message) == peer) {
if (const auto date = dateFromMessage(message)) {
if (IdFromMessage(message) == msgId
&& PeerFromMessage(message) == peer) {
if (const auto date = DateFromMessage(message)) {
lastDate = date;
}
return;