mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-11 13:16:53 +00:00
GODT-1556: If no references, use the in-reply-to header as ParentID.
This commit is contained in:
@ -174,7 +174,11 @@ func sendWithKey( //nolint:funlen
|
||||
to []string,
|
||||
message message.Message,
|
||||
) (proton.Message, error) {
|
||||
parentID, err := getParentID(ctx, client, authAddrID, addrMode, message.References)
|
||||
references := message.References
|
||||
if message.InReplyTo != "" {
|
||||
references = append(references, message.InReplyTo)
|
||||
}
|
||||
parentID, err := getParentID(ctx, client, authAddrID, addrMode, references)
|
||||
if err != nil {
|
||||
return proton.Message{}, fmt.Errorf("failed to get parent ID: %w", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user