From dc697ecd64ae73b1a3128a630818be745d3791e0 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Tue, 15 Oct 2024 20:36:12 +0300 Subject: [PATCH] bridgev2/portal: include receiver in deterministic room IDs --- bridgev2/portal.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bridgev2/portal.go b/bridgev2/portal.go index 016d3693..aa263098 100644 --- a/bridgev2/portal.go +++ b/bridgev2/portal.go @@ -3530,7 +3530,7 @@ func (portal *Portal) createMatrixRoomInLoop(ctx context.Context, source *UserLo Preset: "private_chat", IsDirect: portal.RoomType == database.RoomTypeDM, PowerLevelOverride: powerLevels, - BeeperLocalRoomID: id.RoomID(fmt.Sprintf("!%s:%s", portal.ID, portal.Bridge.Matrix.ServerName())), + BeeperLocalRoomID: id.RoomID(fmt.Sprintf("!%s.%s:%s", portal.ID, portal.Receiver, portal.Bridge.Matrix.ServerName())), } autoJoinInvites := portal.Bridge.Matrix.GetCapabilities().AutoJoinInvites if autoJoinInvites {