From cd3abcf0a72ab69da0c26a483cfddf35e35c0f03 Mon Sep 17 00:00:00 2001 From: Lance Stout Date: Wed, 16 Oct 2013 13:13:29 -0700 Subject: [PATCH] Fix excess reason condition wrapping --- clientapp/models/call.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/clientapp/models/call.js b/clientapp/models/call.js index 4350187..2ba1f81 100644 --- a/clientapp/models/call.js +++ b/clientapp/models/call.js @@ -21,9 +21,7 @@ module.exports = HumanModel.define({ var reason = reasonForEnding || 'success'; this.contact.onCall = false; if (this.jingleSession) { - this.jingleSession.end({ - condition: reason - }); + this.jingleSession.end(reasonForEnding); } this.collection.remove(this); }