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

@@ -170,10 +170,6 @@ loop.panel = (function(_, mozL10n) {
* Returns a random 5 character string used to identify
* the conversation.
* XXX this will go away once the backend changes
* @note:
* - When we get back a callUrl we use setLoopCharPref to store the token
* (the last fragment of the URL) so that it can be used to ignore&block
* the call. The preference is used by the conversation router.
*/
conversationIdentifier: function() {
return Math.random().toString(36).substring(5);
@@ -199,7 +195,6 @@ loop.panel = (function(_, mozL10n) {
var token = callUrlData.callToken ||
callUrl.pathname.split('/').pop();
navigator.mozLoop.setLoopCharPref('loopToken', token);
this.setState({pending: false, copied: false, callUrl: callUrl.href});
} catch(e) {
console.log(e);