From 5d916e0e9a66bc925fc6fdf23b97547b79200ed9 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Thu, 26 Sep 2024 12:12:02 +0300 Subject: [PATCH] bridgev2/queue: add shortcut for QueueRemoteEvent --- bridgev2/queue.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bridgev2/queue.go b/bridgev2/queue.go index 213307a3..38895953 100644 --- a/bridgev2/queue.go +++ b/bridgev2/queue.go @@ -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())