Skip to content

Commit

Permalink
bridgev2/queue: add shortcut for QueueRemoteEvent
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Sep 26, 2024
1 parent edae083 commit 5d916e0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bridgev2/queue.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,10 @@ func (br *Bridge) QueueMatrixEvent(ctx context.Context, evt *event.Event) {
}
}

func (ul *UserLogin) QueueRemoteEvent(evt RemoteEvent) {
ul.Bridge.QueueRemoteEvent(ul, evt)
}

func (br *Bridge) QueueRemoteEvent(login *UserLogin, evt RemoteEvent) {
log := login.Log
ctx := log.WithContext(context.TODO())
Expand Down

0 comments on commit 5d916e0

Please sign in to comment.