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

Method migrateTo

Telegram/SourceFiles/data/data_peer.cpp:1273–1280  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1271}
1272
1273ChannelData *PeerData::migrateTo() const {
1274 if (const auto chat = asChat()) {
1275 if (const auto result = chat->getMigrateToChannel()) {
1276 return result->amIn() ? result : nullptr;
1277 }
1278 }
1279 return nullptr;
1280}
1281
1282not_null<PeerData*> PeerData::migrateToOrMe() {
1283 if (const auto channel = migrateTo()) {

Callers 15

migrateChatMethod · 0.80
showHistoryMethod · 0.80
refreshFromLabelMethod · 0.80
setContextMethod · 0.80
refreshListMethod · 0.80
showCalendarMethod · 0.80
SubscribeToMigrationFunction · 0.80
setPeerMethod · 0.80
asChatNotMigratedMethod · 0.80
setupMigrationViewerMethod · 0.80
applyDialogMethod · 0.80

Calls 2

getMigrateToChannelMethod · 0.80
amInMethod · 0.45

Tested by

no test coverage detected