mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-20 17:16:46 +00:00
fix: crash in fakeapi if user is nil
This commit is contained in:
@ -108,7 +108,7 @@ func (api *FakePMAPI) checkInternetAndRecordCall(method method, path string, req
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (api *FakePMAPI) sendAuth(auth *pmapi.Auth) {
|
func (api *FakePMAPI) sendAuth(auth *pmapi.Auth) {
|
||||||
api.controller.clientManager.HandleAuth(pmapi.ClientAuth{UserID: api.user.ID, Auth: auth})
|
api.controller.clientManager.HandleAuth(pmapi.ClientAuth{UserID: api.userID, Auth: auth})
|
||||||
}
|
}
|
||||||
|
|
||||||
func (api *FakePMAPI) setUser(username string) error {
|
func (api *FakePMAPI) setUser(username string) error {
|
||||||
|
|||||||
Reference in New Issue
Block a user