Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Common group missing in bot profile #28886

Closed
JasonKhew96 opened this issue Jan 24, 2025 · 1 comment
Closed

Common group missing in bot profile #28886

JasonKhew96 opened this issue Jan 24, 2025 · 1 comment
Labels

Comments

@JasonKhew96
Copy link

Steps to reproduce

  1. open any bot profile

Expected behaviour

Profile view should show common group button for bot

Actual behaviour

common group button missing

addCommonGroupsButton() condition skipped because asBot() is true

if (const auto bot = _peer->asBot()) {
addSimilarPeersButton(bot, st::infoIconMediaBot);
} else if (const auto channel = _peer->asBroadcast()) {
addSimilarPeersButton(channel, st::infoIconMediaChannel);
} else if (const auto user = _peer->asUser()) {
addCommonGroupsButton(user, st::infoIconMediaGroup);
}

Operating system

Arch Linux x86_64

Version of Telegram Desktop

v5.10.4

Installation source

Static binary from official website

Crash ID

No response

Logs

@john-preston
Copy link
Member

@JasonKhew96 Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants