userinfo: prefer non-contacts as info source
This commit is contained in:
@@ -216,8 +216,9 @@ func (t *TelegramClient) wrapUserInfo(ctx context.Context, u tg.UserClass, ghost
|
||||
meta.IsBot = user.Bot
|
||||
meta.Deleted = user.Deleted
|
||||
meta.NotMin = true
|
||||
if meta.ContactSource == 0 {
|
||||
if meta.ContactSource == 0 || (!user.Contact && meta.SourceIsContact) {
|
||||
meta.ContactSource = t.telegramUserID
|
||||
meta.SourceIsContact = user.Contact
|
||||
}
|
||||
}
|
||||
return changed
|
||||
|
||||
Reference in New Issue
Block a user