2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Use ready parts from loader in streaming.

This commit is contained in:
John Preston
2019-04-12 13:25:00 +04:00
parent 8704f6efd0
commit cca906d383
15 changed files with 207 additions and 86 deletions

View File

@@ -402,7 +402,8 @@ public:
std::shared_ptr<::Media::Streaming::Reader> documentStreamedReader(
not_null<DocumentData*> document,
FileOrigin origin);
FileOrigin origin,
bool forceRemoteLoader = false);
HistoryItem *addNewMessage(const MTPMessage &data, NewMessageType type);