diff --git a/go.mod b/go.mod index d5f40d64..b279c4c1 100644 --- a/go.mod +++ b/go.mod @@ -19,7 +19,7 @@ require ( golang.org/x/exp v0.0.0-20240613232115-7f521ea00fb8 golang.org/x/net v0.26.0 google.golang.org/protobuf v1.34.2 - maunium.net/go/mautrix v0.19.0-beta.1.0.20240621171215-921240d99bf7 + maunium.net/go/mautrix v0.19.0-beta.1.0.20240624123328-e13b62807ff7 nhooyr.io/websocket v1.8.11 ) diff --git a/go.sum b/go.sum index 3e034647..fea91035 100644 --- a/go.sum +++ b/go.sum @@ -93,7 +93,7 @@ gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= maunium.net/go/mauflag v1.0.0 h1:YiaRc0tEI3toYtJMRIfjP+jklH45uDHtT80nUamyD4M= maunium.net/go/mauflag v1.0.0/go.mod h1:nLivPOpTpHnpzEh8jEdSL9UqO9+/KBJFmNRlwKfkPeA= -maunium.net/go/mautrix v0.19.0-beta.1.0.20240621171215-921240d99bf7 h1:kdp/zZXtl0vMXa6/Vto34mQ4YhHoj4DHSffr4j101eA= -maunium.net/go/mautrix v0.19.0-beta.1.0.20240621171215-921240d99bf7/go.mod h1:cxv1w6+syudmEpOewHYIQT9yO7TM5UOWmf6xEBVI4H4= +maunium.net/go/mautrix v0.19.0-beta.1.0.20240624123328-e13b62807ff7 h1:l2nguDM5+Dlud5hdsaUBgyBT7FJ86BknpGmUTI/CemA= +maunium.net/go/mautrix v0.19.0-beta.1.0.20240624123328-e13b62807ff7/go.mod h1:cxv1w6+syudmEpOewHYIQT9yO7TM5UOWmf6xEBVI4H4= nhooyr.io/websocket v1.8.11 h1:f/qXNc2/3DpoSZkHt1DQu6rj4zGC8JmkkLkWss0MgN0= nhooyr.io/websocket v1.8.11/go.mod h1:rN9OFWIUwuxg4fR5tELlYC04bXYowCP9GX47ivo2l+c= diff --git a/pkg/connector/connector.go b/pkg/connector/connector.go index 2e6d59db..fec0f421 100644 --- a/pkg/connector/connector.go +++ b/pkg/connector/connector.go @@ -50,6 +50,14 @@ func NewConnector() *SignalConnector { } } +var signalGeneralCaps = &bridgev2.NetworkGeneralCapabilities{ + DisappearingMessages: true, +} + +func (s *SignalConnector) GetCapabilities() *bridgev2.NetworkGeneralCapabilities { + return signalGeneralCaps +} + func (s *SignalConnector) GetName() bridgev2.BridgeName { return bridgev2.BridgeName{ DisplayName: "Signal",