call was ending in wrong situation
This commit is contained in:
parent
d82288c9f2
commit
2f4b3b3761
1 changed files with 2 additions and 1 deletions
|
@ -2155,7 +2155,8 @@ Metamaps.Realtime = {
|
||||||
mapper.inConversation = false;
|
mapper.inConversation = false;
|
||||||
self.room.chat.mapperLeftCall(id);
|
self.room.chat.mapperLeftCall(id);
|
||||||
|
|
||||||
if (self.countOthersInConversation() < 2) {
|
if ((self.inConversation && self.countOthersInConversation() === 0) ||
|
||||||
|
(!self.inConversation && self.countOthersInConversation() === 1)) {
|
||||||
self.callEnded();
|
self.callEnded();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue