mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
Let [Photo|Document]Media outlive message view.
This commit is contained in:
@@ -63,6 +63,8 @@ class CloudThemes;
|
||||
class Streaming;
|
||||
class MediaRotation;
|
||||
class Histories;
|
||||
class DocumentMedia;
|
||||
class PhotoMedia;
|
||||
|
||||
class Session final {
|
||||
public:
|
||||
@@ -110,6 +112,9 @@ public:
|
||||
|
||||
void clear();
|
||||
|
||||
void keepAlive(std::shared_ptr<PhotoMedia> media);
|
||||
void keepAlive(std::shared_ptr<DocumentMedia> media);
|
||||
|
||||
void startExport(PeerData *peer = nullptr);
|
||||
void startExport(const MTPInputPeer &singlePeer);
|
||||
void suggestStartExport(TimeId availableAt);
|
||||
|
Reference in New Issue
Block a user