mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-11 05:06:51 +00:00
GODT-1189 GODT-1190 GODT-1191 Fix missing sender while creating draft.
This commit is contained in:
@ -132,6 +132,10 @@ func (im *imapMailbox) createDraftMessage(kr *crypto.KeyRing, email string, body
|
||||
return err
|
||||
}
|
||||
|
||||
if m.Sender == nil {
|
||||
m.Sender = &mail.Address{}
|
||||
}
|
||||
|
||||
m.Sender.Address = pmapi.ConstructAddress(m.Sender.Address, email)
|
||||
|
||||
draft, _, err := im.user.storeUser.CreateDraft(kr, m, readers, "", "", "")
|
||||
|
||||
Reference in New Issue
Block a user