Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions event/im_message.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ type RoomMessageEvent struct {

// This message is a reply to RelatesTo if present.
RelatesTo json.RawMessage `json:"m.relates_to,omitempty"`
// NewContent is the new message content if RelatesTo.RelType is m.replace.
NewContent *RoomMessageEvent `json:"m.new_content,omitempty"`

// Optionally present in Text, Emote and Notice.
Format MessageFormat `json:"format,omitempty"`
Expand Down