From 49965b4ab7c46f8f29168f7ba3efe997106f86b4 Mon Sep 17 00:00:00 2001 From: Arseny Smirnov Date: Fri, 15 Feb 2019 22:40:09 +0300 Subject: [PATCH] FileManager: set full_source in set_new_remote_location GitOrigin-RevId: e088e6858baff79ffc035bb7a05d2ffa5ec77b60 --- td/telegram/files/FileManager.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/td/telegram/files/FileManager.cpp b/td/telegram/files/FileManager.cpp index 5f8e43c4..0ff47373 100644 --- a/td/telegram/files/FileManager.cpp +++ b/td/telegram/files/FileManager.cpp @@ -174,12 +174,14 @@ void FileNode::set_new_remote_location(NewRemoteFileLocation new_remote) { on_changed(); } remote_.full = new_remote.full; + remote_.full_source = new_remote.full_source; remote_.is_full_alive = new_remote.is_full_alive; } else { if (remote_.full) { VLOG(update_file) << "File " << main_file_id_ << " has lost remote location"; remote_.full = {}; remote_.is_full_alive = false; + remote_.full_source = FileLocationSource::None; on_changed(); } }