Fix suggested file name.

GitOrigin-RevId: 233dae3d49d9801aaad267182f742c0ddaa8ebdd
This commit is contained in:
levlam 2018-01-28 21:28:17 +03:00
parent 62bb714421
commit b066d34457

View File

@ -218,8 +218,8 @@ std::pair<DocumentsManager::DocumentType, FileId> DocumentsManager::on_get_docum
suggested_file_name = to_string(std::abs(id));
auto extension = MimeType::to_extension(mime_type, default_extension);
if (!extension.empty()) {
file_name += '.';
file_name += extension;
suggested_file_name += '.';
suggested_file_name += extension;
}
}
FileId file_id = td_->file_manager_->register_remote(