diff --git a/Telegram/SourceFiles/data/data_document.cpp b/Telegram/SourceFiles/data/data_document.cpp index 4fe3f49bcb..a5bbd46b94 100644 --- a/Telegram/SourceFiles/data/data_document.cpp +++ b/Telegram/SourceFiles/data/data_document.cpp @@ -373,7 +373,7 @@ void DocumentData::setattributes( } } }, [&](const MTPDdocumentAttributeFilename &data) { - setFileName(_filename); + setFileName(qs(data.vfile_name())); }, [&](const MTPDdocumentAttributeHasStickers &data) { _flags |= Flag::HasAttachedStickers; });