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

Method migrateFrom

Telegram/SourceFiles/data/data_peer.cpp:1264–1271  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1262}
1263
1264ChatData *PeerData::migrateFrom() const {
1265 if (const auto megagroup = asMegagroup()) {
1266 return megagroup->amIn()
1267 ? megagroup->getMigrateFromChat()
1268 : nullptr;
1269 }
1270 return nullptr;
1271}
1272
1273ChannelData *PeerData::migrateTo() const {
1274 if (const auto chat = asChat()) {

Callers 15

deleteHistoryMethod · 0.45
MainWidgetMethod · 0.45
setContextMethod · 0.45
refreshListMethod · 0.45
setHistoryMethod · 0.45
showCalendarMethod · 0.45
HidePinnedBarFunction · 0.45
IsOldForPinFunction · 0.45
deleteChannelMethod · 0.45
setPeerMethod · 0.45
HistoryMergedViewerFunction · 0.45

Calls 2

getMigrateFromChatMethod · 0.80
amInMethod · 0.45

Tested by

no test coverage detected