handletelegram: don't update remote profile with min info
This commit is contained in:
@@ -810,7 +810,7 @@ func (t *TelegramClient) updateGhost(ctx context.Context, userID int64, user *tg
|
|||||||
}
|
}
|
||||||
ghost.UpdateInfo(ctx, userInfo)
|
ghost.UpdateInfo(ctx, userInfo)
|
||||||
|
|
||||||
if ghost.ID == t.userID && t.updateRemoteProfile(ctx, user, ghost) {
|
if !user.Min && ghost.ID == t.userID && t.updateRemoteProfile(ctx, user, ghost) {
|
||||||
t.userLogin.BridgeState.Send(status.BridgeState{StateEvent: status.StateConnected})
|
t.userLogin.BridgeState.Send(status.BridgeState{StateEvent: status.StateConnected})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user