mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-17 22:14:58 +08:00
Only count rooms we're in as DM rooms
This commit is contained in:
parent
50ef695740
commit
04889a89ec
@ -45,6 +45,10 @@ module.exports = {
|
|||||||
isConfCallRoom: function(room, me, conferenceHandler) {
|
isConfCallRoom: function(room, me, conferenceHandler) {
|
||||||
if (!conferenceHandler) return false;
|
if (!conferenceHandler) return false;
|
||||||
|
|
||||||
|
if (me.membership != "join") {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
const otherMember = this.getOnlyOtherMember(room, me);
|
const otherMember = this.getOnlyOtherMember(room, me);
|
||||||
if (otherMember === null) {
|
if (otherMember === null) {
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user