Update DocumentsManager.hpp
This commit is contained in:
parent
35fa5cd785
commit
23321d2bfd
|
@ -21,12 +21,15 @@ namespace td {
|
|||
|
||||
template <class StorerT>
|
||||
void DocumentsManager::store_document(FileId file_id, StorerT &storer) const {
|
||||
LOG(DEBUG) << "Store document " << file_id;
|
||||
//LOG(DEBUG) << "Store document " << file_id;
|
||||
auto it = documents_.find(file_id);
|
||||
if (it == documents_.end()) {
|
||||
return;
|
||||
}
|
||||
const GeneralDocument *document = it->second.get();
|
||||
if (document == nullptr) {
|
||||
return;
|
||||
}
|
||||
store(document->file_name, storer);
|
||||
store(document->mime_type, storer);
|
||||
store(document->minithumbnail, storer);
|
||||
|
|
Reference in New Issue