@ -26,7 +26,6 @@
this . listenTo ( this . model , 'change:avatar' , this . updateAvatar ) ;
this . listenTo ( this . model , 'change:avatar' , this . updateAvatar ) ;
this . listenTo ( this . model , 'change:name' , this . updateTitle ) ;
this . listenTo ( this . model , 'change:name' , this . updateTitle ) ;
this . listenTo ( this . model , 'newmessage' , this . addMessage ) ;
this . listenTo ( this . model , 'newmessage' , this . addMessage ) ;
this . listenTo ( this . model , 'change:unreadCount' , this . onUnread ) ;
this . listenTo ( this . model , 'opened' , this . onOpened ) ;
this . listenTo ( this . model , 'opened' , this . onOpened ) ;
this . render ( ) ;
this . render ( ) ;
@ -130,12 +129,6 @@
this . model . markRead ( ) ;
this . model . markRead ( ) ;
} ,
} ,
onUnread : function ( model , previous ) {
if ( ! this . isHidden ( ) ) {
this . markRead ( ) ;
}
} ,
verifyIdentity : function ( ) {
verifyIdentity : function ( ) {
if ( this . model . isPrivate ( ) ) {
if ( this . model . isPrivate ( ) ) {
var their _number = this . model . id ;
var their _number = this . model . id ;