From b48c285f5c3e1e7923f1bf6a5c80e48c7d8cf017 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Fri, 28 Feb 2025 19:33:51 +0200 Subject: [PATCH] hicli/send: move extra to `m.new_content` when editing --- pkg/hicli/send.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/hicli/send.go b/pkg/hicli/send.go index 197af9c..3ecd3d3 100644 --- a/pkg/hicli/send.go +++ b/pkg/hicli/send.go @@ -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 }