From 49d99aff82afbd24a8f7e18320aa400136ff4e31 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Sun, 15 Mar 2026 21:27:13 +0200 Subject: [PATCH] userinfo: save source_is_contact flag properly --- pkg/connector/userinfo.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/connector/userinfo.go b/pkg/connector/userinfo.go index 63f30977..4170cfb0 100644 --- a/pkg/connector/userinfo.go +++ b/pkg/connector/userinfo.go @@ -216,7 +216,8 @@ 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 || (!user.Contact && meta.SourceIsContact) { + if meta.ContactSource == 0 || meta.ContactSource == t.telegramUserID || (!user.Contact && meta.SourceIsContact) { + changed = changed || meta.ContactSource != t.telegramUserID || meta.SourceIsContact != user.Contact meta.ContactSource = t.telegramUserID meta.SourceIsContact = user.Contact }