MCPcopy Create free account
hub / github.com/TDesktop-x64/tdesktop / migrateFail

Method migrateFail

Telegram/SourceFiles/apiwrap.cpp:1395–1406  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1393}
1394
1395void ApiWrap::migrateFail(not_null<PeerData*> peer, const QString &error) {
1396 if (error == u"CHANNELS_TOO_MUCH"_q) {
1397 ShowChannelsLimitBox(peer);
1398 }
1399 if (auto handlers = _migrateCallbacks.take(peer)) {
1400 for (auto &handler : *handlers) {
1401 if (handler.fail) {
1402 handler.fail(error);
1403 }
1404 }
1405 }
1406}
1407
1408void ApiWrap::markContentsRead(
1409 const base::flat_set<not_null<HistoryItem*>> &items) {

Callers

nothing calls this directly

Calls 3

ShowChannelsLimitBoxFunction · 0.85
takeMethod · 0.45
failMethod · 0.45

Tested by

no test coverage detected