From 7b6be74cddfc80282938455d5e345a6dc931b638 Mon Sep 17 00:00:00 2001 From: Nick Mills-Barrett Date: Thu, 31 Oct 2024 12:05:38 +0000 Subject: [PATCH] Send CONNECTED state on connect --- pkg/connector/client.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/connector/client.go b/pkg/connector/client.go index 8434885..dec0fe7 100644 --- a/pkg/connector/client.go +++ b/pkg/connector/client.go @@ -6,6 +6,7 @@ import ( "go.mau.fi/util/ptr" + "maunium.net/go/mautrix/bridge/status" "maunium.net/go/mautrix/bridgev2" "maunium.net/go/mautrix/bridgev2/database" "maunium.net/go/mautrix/bridgev2/networkid" @@ -21,6 +22,10 @@ var _ bridgev2.NetworkAPI = (*DummyClient)(nil) var _ bridgev2.IdentifierResolvingNetworkAPI = (*DummyClient)(nil) func (dc *DummyClient) Connect(ctx context.Context) error { + state := status.BridgeState{ + StateEvent: status.StateConnected, + } + dc.UserLogin.BridgeState.Send(state) return nil }