call was ending in wrong situation

This commit is contained in:
Connor Turland 2016-02-17 13:49:48 +13:00
parent d82288c9f2
commit 2f4b3b3761

View file

@ -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();
} }
} }