From 9ea18ddc413a8c1eae6c32fe16e162a1998079c1 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 25 Apr 2023 20:00:55 +0300 Subject: Telegram: offline files to be links from the very beginning --- src/core/stdfile/src/file.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/core/stdfile') diff --git a/src/core/stdfile/src/file.cpp b/src/core/stdfile/src/file.cpp index b1f8f3670f..652da6a36c 100644 --- a/src/core/stdfile/src/file.cpp +++ b/src/core/stdfile/src/file.cpp @@ -355,6 +355,7 @@ static INT_PTR Proto_RecvFileT(WPARAM, LPARAM lParam) } DB::FILE_BLOB blob(wszFiles, bUtf ? Utf2T(pre->descr.a).get() : _A2T(pre->descr.a)); + CallProtoService(dbei.szModule, PS_PRECREATE_OFFLINEFILE, WPARAM(&blob), pre->lParam); blob.write(dbei); } -- cgit v1.2.3