Skip to content

Commit 31a68cb

Browse files
committed
bridgev2/portal: don't try to send disappearing notice before room is created
1 parent c259682 commit 31a68cb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

bridgev2/portal.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3219,6 +3219,9 @@ func (portal *Portal) UpdateDisappearingSetting(ctx context.Context, setting dat
32193219
zerolog.Ctx(ctx).Err(err).Msg("Failed to save portal to database after updating disappearing setting")
32203220
}
32213221
}
3222+
if portal.MXID == "" {
3223+
return true
3224+
}
32223225
content := DisappearingMessageNotice(setting.Timer, implicit)
32233226
if sender == nil {
32243227
sender = portal.Bridge.Bot

0 commit comments

Comments
 (0)