mirror of
https://mau.dev/mautrix/go.git
synced 2026-03-14 14:25:53 +01:00
bridgev2/database: don't set disappearing timer content to nil
This commit is contained in:
parent
7b3a60742e
commit
0345a5356d
1 changed files with 1 additions and 1 deletions
|
|
@ -39,7 +39,7 @@ type DisappearingSetting struct {
|
|||
|
||||
func (ds DisappearingSetting) ToEventContent() *event.BeeperDisappearingTimer {
|
||||
if ds.Type == event.DisappearingTypeNone || ds.Timer == 0 {
|
||||
return nil
|
||||
return &event.BeeperDisappearingTimer{}
|
||||
}
|
||||
return &event.BeeperDisappearingTimer{
|
||||
Type: ds.Type,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue