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

Method editableUsername

Telegram/SourceFiles/data/data_peer.cpp:1415–1422  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1413}
1414
1415QString PeerData::editableUsername() const {
1416 if (const auto user = asUser()) {
1417 return user->editableUsername();
1418 } else if (const auto channel = asChannel()) {
1419 return channel->editableUsername();
1420 }
1421 return QString();
1422}
1423
1424const std::vector<QString> &PeerData::usernames() const {
1425 if (const auto user = asUser()) {

Callers 1

updateNameDelayedMethod · 0.45

Calls 1

QStringClass · 0.50

Tested by

no test coverage detected