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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user