userinfo: refactor GetUserInfo and remote profile handling

This commit is contained in:
Tulir Asokan
2025-12-04 15:39:46 +02:00
parent 2cac8f8b4a
commit 526903cb7c
5 changed files with 201 additions and 152 deletions
+1 -1
View File
@@ -128,7 +128,7 @@ func finalizeLogin(ctx context.Context, user *bridgev2.User, authorization *tg.A
}
}()
ul.RemoteProfile, ul.RemoteName = userToRemoteProfile(me)
ul.RemoteProfile, ul.RemoteName = userToRemoteProfile(me, nil, nil)
err = ul.Save(ctx)
if err != nil {
return nil, fmt.Errorf("failed to save login: %w", err)