From ff4dc6cf10b5e23084bdc7ab1cb642dd0fe5340e Mon Sep 17 00:00:00 2001 From: Lance Stout Date: Mon, 16 Dec 2013 22:22:53 -0800 Subject: [PATCH] Only start local media if we can --- clientapp/app.js | 4 +++- public/x-manifest.cache | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/clientapp/app.js b/clientapp/app.js index f714c11..884bc6c 100644 --- a/clientapp/app.js +++ b/clientapp/app.js @@ -63,7 +63,9 @@ module.exports = { self.api = window.client = StanzaIO.createClient(config); xmppEventHandlers(self.api, self); - self.api.jingle.startLocalMedia(); + if (self.api.jingle.capabilities.length > 1) { + self.api.jingle.startLocalMedia(); + } self.api.once('session:started', function () { app.state.hasConnected = true; diff --git a/public/x-manifest.cache b/public/x-manifest.cache index 0bea588..061c10c 100644 --- a/public/x-manifest.cache +++ b/public/x-manifest.cache @@ -1,5 +1,5 @@ CACHE MANIFEST -# 0.0.1 1387260413951 +# 0.0.1 1387261368693 CACHE: /app.js