2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 22:46:10 +00:00

Fixed some unused-but-set-variable warnings.

This commit is contained in:
23rd
2025-04-12 20:44:45 +03:00
committed by John Preston
parent 667e614bf3
commit 9ad1d1c25d
55 changed files with 98 additions and 99 deletions

View File

@@ -703,7 +703,7 @@ bool PeerData::canTransferGifts() const {
bool PeerData::canEditMessagesIndefinitely() const {
if (const auto user = asUser()) {
return user->isSelf();
} else if (const auto chat = asChat()) {
} else if (isChat()) {
return false;
} else if (const auto channel = asChannel()) {
return channel->isMegagroup()
@@ -1410,7 +1410,7 @@ Data::ForumTopic *PeerData::forumTopicFor(MsgId rootId) const {
}
bool PeerData::allowsForwarding() const {
if (const auto user = asUser()) {
if (isUser()) {
return true;
} else if (const auto channel = asChannel()) {
return channel->allowsForwarding();