Skip to content

Commit

Permalink
Update portalsByMXID cache when creating DM portal
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Dec 30, 2023
1 parent 0403522 commit 14921e3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 14921e3

Please sign in to comment.