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:
@@ -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();
|
||||
|
Reference in New Issue
Block a user