forked from Mirrors/gomuks
hicli/send: move extra to m.new_content
when editing
This commit is contained in:
parent
7168683a4b
commit
b48c285f5c
1 changed files with 5 additions and 0 deletions
|
@ -167,6 +167,11 @@ func (h *HiClient) SendMessage(
|
|||
if contentCopy.File != nil {
|
||||
content.URL = contentCopy.File.URL
|
||||
}
|
||||
if extra != nil {
|
||||
extra = map[string]any{
|
||||
"m.new_content": extra,
|
||||
}
|
||||
}
|
||||
} else {
|
||||
content.RelatesTo = relatesTo
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue