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

Removed MTP::Error from migrating chat.

This commit is contained in:
23rd
2021-11-28 07:51:34 +03:00
committed by John Preston
parent 0dfb77435d
commit d218b76efe
3 changed files with 12 additions and 13 deletions

View File

@@ -208,7 +208,7 @@ public:
void migrateChat(
not_null<ChatData*> chat,
FnMut<void(not_null<ChannelData*>)> done,
Fn<void(const MTP::Error &)> fail = nullptr);
Fn<void(const QString &)> fail = nullptr);
void markMediaRead(const base::flat_set<not_null<HistoryItem*>> &items);
void markMediaRead(not_null<HistoryItem*> item);
@@ -512,7 +512,7 @@ private:
void migrateDone(
not_null<PeerData*> peer,
not_null<ChannelData*> channel);
void migrateFail(not_null<PeerData*> peer, const MTP::Error &error);
void migrateFail(not_null<PeerData*> peer, const QString &error);
not_null<Main::Session*> _session;
@@ -613,7 +613,7 @@ private:
struct MigrateCallbacks {
FnMut<void(not_null<ChannelData*>)> done;
Fn<void(const MTP::Error&)> fail;
Fn<void(const QString&)> fail;
};
base::flat_map<
not_null<PeerData*>,