userinfo: don't apply min names

This commit is contained in:
Tulir Asokan
2026-03-16 17:20:17 +02:00
parent 7fa51da335
commit 0d818303f4

View File

@@ -203,6 +203,9 @@ func (t *TelegramClient) wrapUserInfo(ctx context.Context, u tg.UserClass, ghost
if user.Contact && ghost.Name != "" && oldMeta.ContactSource != t.telegramUserID && oldMeta.ContactSource != 0 && !t.main.Config.ContactNames {
namePtr = nil
}
if user.Min && !oldMeta.IsMin() && ghost.Name != "" {
namePtr = nil
}
return &bridgev2.UserInfo{
IsBot: &user.Bot,
Name: namePtr,