Bug 1045569 - Revoke the correct call url in loop desktop client, r=rgauthier@mozilla.com

This commit is contained in:
Andrei Oprea
2014-08-21 11:14:04 -07:00
parent faf1fc00f5
commit 04110c60b8
8 changed files with 25 additions and 23 deletions

View File

@@ -263,7 +263,7 @@ loop.conversation = (function(OT, mozL10n) {
*/
declineAndBlock: function() {
navigator.mozLoop.stopAlerting();
var token = navigator.mozLoop.getLoopCharPref("loopToken");
var token = this._conversation.get("callToken");
this._client.deleteCallUrl(token, function(error) {
// XXX The conversation window will be closed when this cb is triggered
// figure out if there is a better way to report the error to the user