mirror of
https://mau.dev/mautrix/go.git
synced 2026-03-14 14:25:53 +01:00
bridgev2/portal: add action message metadata to disappearing notices
This commit is contained in:
parent
30ab68f7f1
commit
41bbe4ace4
1 changed files with 8 additions and 0 deletions
|
|
@ -4191,6 +4191,14 @@ func (portal *Portal) UpdateDisappearingSetting(ctx context.Context, setting dat
|
|||
content := DisappearingMessageNotice(setting.Timer, opts.Implicit)
|
||||
_, err := opts.Sender.SendMessage(ctx, portal.MXID, event.EventMessage, &event.Content{
|
||||
Parsed: content,
|
||||
Raw: map[string]any{
|
||||
"com.beeper.action_message": map[string]any{
|
||||
"type": "disappearing_timer",
|
||||
"timer": setting.Timer.Milliseconds(),
|
||||
"timer_type": setting.Type,
|
||||
"implicit": opts.Implicit,
|
||||
},
|
||||
},
|
||||
}, &MatrixSendExtra{Timestamp: opts.Timestamp})
|
||||
if err != nil {
|
||||
zerolog.Ctx(ctx).Err(err).Msg("Failed to send disappearing messages notice")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue