Include the colon in the user ID in the numebr of parts we check for

This commit is contained in:
David Baker
2023-09-06 09:12:04 +01:00
parent 83fd9a49ab
commit 8f570b7893

View File

@@ -456,7 +456,8 @@ function findMatrixMember(
if (!id) return undefined;
const parts = id.split(":");
if (parts.length < 2) {
// must be at least 3 parts because we know the first part is a userId which must necessarily contain a colon
if (parts.length < 3) {
logger.warn(
"Livekit participants ID doesn't look like a userId:deviceId combination"
);