mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/telegramdesktop/tdesktop
synced 2026-09-21 00:23:56 +08:00
Divide data/data_peer and remove from PCH.
This commit is contained in:
@@ -19,7 +19,7 @@ struct FileReferenceAccumulator {
|
||||
}
|
||||
void push(const MTPFileLocation &data) {
|
||||
data.match([&](const MTPDfileLocation &data) {
|
||||
result.emplace(SimpleFileLocationId(
|
||||
result.data.emplace(SimpleFileLocationId(
|
||||
data.vvolume_id.v,
|
||||
data.vdc_id.v,
|
||||
data.vlocal_id.v), data.vfile_reference.v);
|
||||
@@ -46,7 +46,7 @@ struct FileReferenceAccumulator {
|
||||
for (const auto &thumb : data.vthumbs.v) {
|
||||
push(thumb);
|
||||
}
|
||||
result.emplace(
|
||||
result.data.emplace(
|
||||
DocumentFileLocationId(data.vid.v),
|
||||
data.vfile_reference.v);
|
||||
}, [](const MTPDdocumentEmpty &data) {
|
||||
|
||||
Reference in New Issue
Block a user