| 1393 | } |
| 1394 | |
| 1395 | void 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 | |
| 1408 | void ApiWrap::markContentsRead( |
| 1409 | const base::flat_set<not_null<HistoryItem*>> &items) { |
nothing calls this directly
no test coverage detected