From 14921e3734dc3ad33ad559ed04011b33810e39b2 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Sat, 30 Dec 2023 21:29:28 +0100 Subject: [PATCH] Update portalsByMXID cache when creating DM portal --- main.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.go b/main.go index 93639bd0..641228cf 100644 --- a/main.go +++ b/main.go @@ -246,6 +246,9 @@ func (br *SignalBridge) createPrivatePortalFromInvite(roomID id.RoomID, inviter encryptionEnabled = existingEncryption.Algorithm == id.AlgorithmMegolmV1 } portal.MXID = roomID + br.portalsLock.Lock() + br.portalsByMXID[portal.MXID] = portal + br.portalsLock.Unlock() //portal.Topic = PrivateChatTopic portal.Name = puppet.Name portal.AvatarURL = puppet.AvatarURL