presence/app/assets/javascripts/presence_videochat.js.erb in social_stream-0.23.2 vs presence/app/assets/javascripts/presence_videochat.js.erb in social_stream-0.23.3

- old
+ new

@@ -13,12 +13,11 @@ function clickVideoChatButton(slug){ var videoBoxVisibility = toggleVideoBoxForSlug(slug); if (videoBoxVisibility) { openVideoChatWindow(slug); - } - else { + } else { closeVideoChatWindow(slug); } } function closeVideoChatWindow(slug){ @@ -156,10 +155,10 @@ contactsInfo[slug].videoChatStatus="disconnected"; } } //Cancelation received -function receiveVideoChatCancelationFromUser(slug,response){ +function receiveVideoChatCancelationFromUser(slug){ if(slug in contactsInfo){ if(contactsInfo[slug].videoChatStatus=="pending"){ showNotificationOnVideoBox(slug,I18n.t("chat.videochat.cancel", {name: getNameFromSlug(slug)})); contactsInfo[slug].videoChatStatus="disconnected"; } \ No newline at end of file