mirror of
https://mau.dev/mautrix/go.git
synced 2026-03-14 14:25:53 +01:00
Update portal.go
Some checks failed
Some checks failed
This commit is contained in:
parent
e9138f72f7
commit
b6fa2bf8de
1 changed files with 6 additions and 0 deletions
|
|
@ -2300,6 +2300,12 @@ func (portal *Portal) sendConvertedMessage(
|
|||
Str("part_id", string(part.ID)).
|
||||
Msg("Not bridging message part with DontBridge flag to Matrix")
|
||||
} else {
|
||||
if converted.Disappear.Type != database.DisappearingTypeNone && converted.Disappear.Timer > 0 {
|
||||
part.Content.BeeperDisappearingTimer = &event.BeeperDisappearingTimer{
|
||||
Type: event.DisappearingType(converted.Disappear.Type),
|
||||
Timer: converted.Disappear.Timer.Milliseconds(),
|
||||
}
|
||||
}
|
||||
resp, err := intent.SendMessage(ctx, portal.MXID, part.Type, &event.Content{
|
||||
Parsed: part.Content,
|
||||
Raw: part.Extra,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue