Fix need_delete_file for outgoing messages.
GitOrigin-RevId: 51ac837238bec39b12caeb6cc2ec28e5ca6c8cc3
This commit is contained in:
parent
075b6f909f
commit
359153c212
@ -26748,7 +26748,10 @@ void MessagesManager::delete_message_files(DialogId dialog_id, const Message *m)
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool MessagesManager::need_delete_file(FullMessageId full_message_id, FileId file_id) const {
|
bool MessagesManager::need_delete_file(FullMessageId full_message_id, FileId file_id) const {
|
||||||
auto full_message_ids = td_->file_reference_manager_->get_some_message_file_sources(file_id);
|
auto main_file_id = td_->file_manager_->get_file_view(file_id).file_id();
|
||||||
|
auto full_message_ids = td_->file_reference_manager_->get_some_message_file_sources(main_file_id);
|
||||||
|
LOG(INFO) << "Receive " << full_message_ids << " as sources for file " << main_file_id << "/" << file_id << " from "
|
||||||
|
<< full_message_id;
|
||||||
for (auto other_full_messsage_id : full_message_ids) {
|
for (auto other_full_messsage_id : full_message_ids) {
|
||||||
if (other_full_messsage_id != full_message_id) {
|
if (other_full_messsage_id != full_message_id) {
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user