hicli/send: move extra to m.new_content when editing

This commit is contained in:
Tulir Asokan 2025-02-28 19:33:51 +02:00
parent 7168683a4b
commit b48c285f5c

View file

@ -167,6 +167,11 @@ func (h *HiClient) SendMessage(
if contentCopy.File != nil { if contentCopy.File != nil {
content.URL = contentCopy.File.URL content.URL = contentCopy.File.URL
} }
if extra != nil {
extra = map[string]any{
"m.new_content": extra,
}
}
} else { } else {
content.RelatesTo = relatesTo content.RelatesTo = relatesTo
} }