mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-20 00:56:47 +00:00
GODT-35: Finish all details and make tests pass
This commit is contained in:
@ -116,6 +116,12 @@ func (api *FakePMAPI) ReorderAddresses(_ context.Context, addressIDs []string) e
|
||||
}
|
||||
|
||||
func (api *FakePMAPI) Addresses() pmapi.AddressList {
|
||||
if api.controller.noInternetConnection {
|
||||
return nil
|
||||
}
|
||||
if api.addresses == nil {
|
||||
return pmapi.AddressList{}
|
||||
}
|
||||
return *api.addresses
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user