fix avatar directive bug

This commit is contained in:
Manuel Araoz 2014-05-08 16:31:08 -03:00
commit 55d1a2f671
2 changed files with 3 additions and 2 deletions

View file

@ -95,9 +95,8 @@ angular.module('copay.directives')
var peer = JSON.parse(attrs.peer)
var peerId = peer.peerId;
var nick = peer.nick;
element.addClass(($rootScope.wallet.getOnlinePeerIDs().indexOf(peerId) != -1) ? 'online' : 'offline');
element.addClass('video-small');
element.attr('title', peerId + (peerId == $rootScope.wallet.network.peerId?' (You)':''));
element.attr('title', peerId + (peerId == $rootScope.wallet.network.peerId ? ' (You)' : ''));
var muted = $rootScope.getVideoMutedStatus(peerId);
if (muted) {
element.attr("muted", true);