diff --git a/td/telegram/files/FileManager.cpp b/td/telegram/files/FileManager.cpp index 8c09555e..bafea60d 100644 --- a/td/telegram/files/FileManager.cpp +++ b/td/telegram/files/FileManager.cpp @@ -661,7 +661,14 @@ int64 FileView::remote_size() const { } string FileView::path() const { - return ""; + switch (node_->local_.type()) { + case LocalFileLocation::Type::Full: + return node_->local_.full().path_; + case LocalFileLocation::Type::Partial: + return node_->local_.partial().path_; + default: + return ""; + } } bool FileView::has_url() const {