mirror of
https://github.com/tulir/gomuks.git
synced 2025-04-19 18:13:41 -05:00
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 {
|
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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue