Skip to content

Commit

Permalink
Send CONNECTED state on connect
Browse files Browse the repository at this point in the history
  • Loading branch information
Fizzadar committed Oct 31, 2024
1 parent a8d30b2 commit 7b6be74
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/connector/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
}

Expand Down

0 comments on commit 7b6be74

Please sign in to comment.