mirror of
https://mau.dev/mautrix/go.git
synced 2026-03-14 14:25:53 +01:00
bridgev2: add support for creating groups (#405)
This commit is contained in:
parent
0627c42270
commit
f8c3a95de7
10 changed files with 543 additions and 103 deletions
|
|
@ -77,7 +77,7 @@ type DisappearingTimerCapability struct {
|
|||
}
|
||||
|
||||
func (dtc *DisappearingTimerCapability) Supports(content *BeeperDisappearingTimer) bool {
|
||||
if dtc == nil || content.Type == DisappearingTypeNone {
|
||||
if dtc == nil || content == nil || content.Type == DisappearingTypeNone {
|
||||
return true
|
||||
}
|
||||
return slices.Contains(dtc.Types, content.Type) && (dtc.Timers == nil || slices.Contains(dtc.Timers, content.Timer))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue