2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-08 02:15:56 +00:00

Use Photo/DocumentData::isNull instead of date check.

This commit is contained in:
John Preston
2021-11-18 11:40:15 +04:00
parent 53c15ed2ac
commit ebded1b421
3 changed files with 7 additions and 7 deletions

View File

@@ -206,7 +206,7 @@ void ResolveDocument(
Window::SessionController *controller,
not_null<DocumentData*> document,
HistoryItem *item) {
if (!document->date) {
if (document->isNull()) {
return;
}
const auto msgId = item ? item->fullId() : FullMsgId();