2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-05 08:55:59 +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

@@ -765,7 +765,7 @@ InlineBotQuery ParseInlineBotQuery(
result.username = username.toString();
if (const auto peer = session->data().peerByUsername(result.username)) {
if (const auto user = peer->asUser()) {
result.bot = peer->asUser();
result.bot = user;
} else {
result.bot = nullptr;
}