mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +00:00
Use UserData::isBot where applicable.
This commit is contained in:
@@ -98,7 +98,7 @@ rpl::producer<TextWithEntities> UsernameValue(not_null<UserData*> user) {
|
||||
|
||||
rpl::producer<QString> PlainAboutValue(not_null<PeerData*> peer) {
|
||||
if (const auto user = peer->asUser()) {
|
||||
if (!user->botInfo) {
|
||||
if (!user->isBot()) {
|
||||
return rpl::single(QString());
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user