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:
@@ -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();
|
||||
|
Reference in New Issue
Block a user