From 04889a89ecd732e84ad541348bf60b241636bdd1 Mon Sep 17 00:00:00 2001 From: David Baker Date: Mon, 5 Sep 2016 18:35:32 +0100 Subject: [PATCH] Only count rooms we're in as DM rooms --- src/MatrixTools.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/MatrixTools.js b/src/MatrixTools.js index f442904862..b95e21a4af 100644 --- a/src/MatrixTools.js +++ b/src/MatrixTools.js @@ -45,6 +45,10 @@ module.exports = { isConfCallRoom: function(room, me, conferenceHandler) { if (!conferenceHandler) return false; + if (me.membership != "join") { + return false; + } + const otherMember = this.getOnlyOtherMember(room, me); if (otherMember === null) { return false;