Browse Source

Removed obsolete code.

pull/186/head
Simon Eisenmann 10 years ago
parent
commit
9457c2d391
  1. 10
      static/js/services/buddylist.js

10
static/js/services/buddylist.js

@ -675,18 +675,8 @@ define(['jquery', 'angular', 'underscore', 'modernizr', 'avltree', 'text!partial
// Find session with help of contact. // Find session with help of contact.
if (contact && contact.Token) { if (contact && contact.Token) {
mediaStream.api.sendSessions(contact.Token, "contact", function(event, type, data) { mediaStream.api.sendSessions(contact.Token, "contact", function(event, type, data) {
//console.log("oooooooooooooooo", type, data);
var tmpSessionData = null; var tmpSessionData = null;
if (data.Users && data.Users.length > 0) { if (data.Users && data.Users.length > 0) {
/*
_.each(data.Users, function(s) {
buddyData.set(s.Id, scope);
// NOTE(longsleep): Not sure if its a good idea to add the retrieved sessions here.
session.add(s.Id, s);
});
sessionData = session.get();
deferred.resolve(sessionData.Id);
*/
tmpSessionData = data.Users[0]; tmpSessionData = data.Users[0];
} }
// Check if we got a session in the meantime. // Check if we got a session in the meantime.

Loading…
Cancel
Save