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

Method changeColorCollectible

Telegram/SourceFiles/data/data_peer.cpp:1053–1065  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1051}
1052
1053bool PeerData::changeColorCollectible(
1054 const tl::conditional<MTPPeerColor> &cloudColor) {
1055 if (!cloudColor) {
1056 return clearColorCollectible();
1057 }
1058 return cloudColor->match([&](const MTPDpeerColorCollectible &data) {
1059 return changeColorCollectible(Data::ParseColorCollectible(data));
1060 }, [&](const MTPDpeerColor &) {
1061 return clearColorCollectible();
1062 }, [&](const MTPDinputPeerColorCollectible &) {
1063 return clearColorCollectible();
1064 });
1065}
1066
1067bool PeerData::changeColor(
1068 const tl::conditional<MTPPeerColor> &cloudColor) {

Callers 2

PreviewWrapMethod · 0.80
SetFunction · 0.80

Calls 1

ParseColorCollectibleFunction · 0.85

Tested by

no test coverage detected