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