2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Remove MTP::MainInstance() global access point.

This commit is contained in:
John Preston
2020-06-11 20:09:46 +04:00
parent 7f09da9e32
commit 0ad7dcaef9
84 changed files with 823 additions and 1362 deletions

View File

@@ -84,7 +84,7 @@ struct SendMediaReady {
};
SendMediaReady PreparePeerPhoto(PeerId peerId, QImage &&image);
SendMediaReady PreparePeerPhoto(MTP::DcId dcId, PeerId peerId, QImage &&image);
using TaskId = void*; // no interface, just id
@@ -270,6 +270,7 @@ public:
std::unique_ptr<FileMediaInformation> &result);
FileLoadTask(
MTP::DcId dcId,
const QString &filepath,
const QByteArray &content,
std::unique_ptr<FileMediaInformation> information,
@@ -279,6 +280,7 @@ public:
std::shared_ptr<SendingAlbum> album = nullptr,
MsgId msgIdToEdit = 0);
FileLoadTask(
MTP::DcId dcId,
const QByteArray &voice,
int32 duration,
const VoiceWaveform &waveform,
@@ -316,7 +318,8 @@ private:
}
void removeFromAlbum();
uint64 _id;
uint64 _id = 0;
MTP::DcId _dcId = 0;
FileLoadTo _to;
const std::shared_ptr<SendingAlbum> _album;
QString _filepath;