userinfo: add support for avoiding contact names/avatars

This commit is contained in:
Tulir Asokan
2026-03-15 16:14:55 +02:00
parent 62efa2e7b9
commit 0aed201869
7 changed files with 83 additions and 56 deletions
+1 -1
View File
@@ -449,7 +449,7 @@ func (t *TelegramClient) onConnected(self *tg.User) {
ghost, err := t.main.Bridge.GetGhostByID(ctx, t.userID)
if err != nil {
log.Err(err).Msg("Failed to get own ghost")
} else if wrapped, err := t.wrapUserInfo(ctx, self); err != nil {
} else if wrapped, err := t.wrapUserInfo(ctx, self, ghost); err != nil {
log.Err(err).Msg("Failed to wrap own user info")
} else {
ghost.UpdateInfo(ctx, wrapped)