From adb0a9b6f0300428e8de4616b4df84c4370f36a5 Mon Sep 17 00:00:00 2001 From: John Preston Date: Mon, 11 Oct 2021 22:57:04 +0400 Subject: [PATCH] Fix document filenames. Regression was introduced in 2b11e45692. --- Telegram/SourceFiles/data/data_document.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; });