forked from Silverfish/proton-bridge
Fix crash when sending while account is logging in
This commit is contained in:
@ -63,5 +63,11 @@ func newBridgeUserWrap(bridgeUser *users.User) *bridgeUserWrap {
|
||||
}
|
||||
|
||||
func (u *bridgeUserWrap) GetStore() storeUserProvider {
|
||||
return u.User.GetStore()
|
||||
// We need to explicitly return nil otherwise it's wrapped nil
|
||||
// and condition `store == nil` would fail.
|
||||
store := u.User.GetStore()
|
||||
if store == nil {
|
||||
return nil
|
||||
}
|
||||
return store
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user