Skip to content

Commit

Permalink
Clear invalid file references loaded from database.
Browse files Browse the repository at this point in the history
GitOrigin-RevId: 12d060ea93146f62190d9fa97421a7931cf29b8d
  • Loading branch information
levlam committed Jan 16, 2020
1 parent 9a40e69 commit cf019bb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion td/telegram/files/FileLocation.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,9 @@ void FullRemoteFileLocation::parse(ParserT &parser) {

if (has_file_reference) {
parse(file_reference_, parser);
// file_reference_.clear();
if (file_reference_ == FileReferenceView::invalid_file_reference()) {
file_reference_.clear();
}
}
if (is_web) {
variant_ = WebRemoteFileLocation();
Expand Down

0 comments on commit cf019bb

Please sign in to comment.