Fix crash when sending while account is logging in

This commit is contained in:
Michal Horejsek
2021-01-06 15:41:39 +01:00
parent 9fe3718d3f
commit 8fe042218c
2 changed files with 8 additions and 1 deletions

View File

@ -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
}

View File

@ -13,6 +13,7 @@ Changelog [format](http://keepachangelog.com/en/1.0.0/)
* GODT-945 Fix panic in integration tests caused by concurrent map writes.
* GODT-732 Fix usage of fontawesome.
* GODT-951 Properly parse message with long lines in header and long header split to multiple lines (upgrading to latest go-message).
* GODT-894 Fix panic when sending while account is logging in.
### Changed
* GODT-858 Bump go-rfc5322 dependency to v0.5.0 to handle some invalid RFC5322 groups and add support for semicolon delimiter in address-list.