mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-20 09:06:45 +00:00
fix: don't delete uid of anonymous clients
This commit is contained in:
@ -104,12 +104,9 @@ func (api *FakePMAPI) checkInternetAndRecordCall(method method, path string, req
|
||||
}
|
||||
|
||||
func (api *FakePMAPI) sendAuth(auth *pmapi.Auth) {
|
||||
go func() {
|
||||
api.controller.clientManager.GetClientAuthChannel() <- pmapi.ClientAuth{
|
||||
UserID: api.user.ID,
|
||||
Auth: auth,
|
||||
}
|
||||
}()
|
||||
go func(clientAuth pmapi.ClientAuth) {
|
||||
api.controller.clientManager.GetClientAuthChannel() <- clientAuth
|
||||
}(pmapi.ClientAuth{UserID: api.user.ID, Auth: auth})
|
||||
}
|
||||
|
||||
func (api *FakePMAPI) setUser(username string) error {
|
||||
|
||||
Reference in New Issue
Block a user