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

Method editStarsPerMessage

Telegram/SourceFiles/data/data_session.cpp:5645–5655  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5643}
5644
5645void Session::editStarsPerMessage(
5646 not_null<ChannelData*> channel,
5647 int count) {
5648 // For admin it's zero, we're admin if we can edit it.
5649 channel->setStarsPerMessage(0);
5650 if (count) {
5651 _commonStarsPerMessage[channel] = count;
5652 } else {
5653 _commonStarsPerMessage.remove(channel);
5654 }
5655}
5656
5657int Session::commonStarsPerMessage(
5658 not_null<const ChannelData*> channel) const {

Callers 1

SaveStarsPerMessageFunction · 0.80

Calls 2

setStarsPerMessageMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected