|  |  | @ -1,7 +1,7 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  | /* global ConversationController: false */ |  |  |  | /* global ConversationController: false */ | 
			
		
	
		
		
			
				
					
					|  |  |  | /* global extension: false */ |  |  |  | /* global extension: false */ | 
			
		
	
		
		
			
				
					
					|  |  |  | /* global getInboxCollection: false */ |  |  |  | /* global getInboxCollection: false */ | 
			
		
	
		
		
			
				
					
					|  |  |  | /* global getFriendCollection: false */ |  |  |  | /* global getContactCollection: false */ | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | /* global i18n: false */ |  |  |  | /* global i18n: false */ | 
			
		
	
		
		
			
				
					
					|  |  |  | /* global Whisper: false */ |  |  |  | /* global Whisper: false */ | 
			
		
	
		
		
			
				
					
					|  |  |  | /* global textsecure: false */ |  |  |  | /* global textsecure: false */ | 
			
		
	
	
		
		
			
				
					|  |  | @ -166,25 +166,25 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |       ); |  |  |  |       ); | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |       // Friends
 |  |  |  |       // Friends
 | 
			
		
	
		
		
			
				
					
					|  |  |  |       const friendCollection = getFriendCollection(); |  |  |  |       const contactCollection = getContactCollection(); | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |       this.listenTo(friendCollection, 'select', this.openConversation); |  |  |  |       this.listenTo(contactCollection, 'select', this.openConversation); | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |       this.friendListView = new Whisper.ConversationListView({ |  |  |  |       this.contactListView = new Whisper.ConversationContactListView({ | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         el: this.$('.friends'), |  |  |  |         el: this.$('.friends'), | 
			
		
	
		
		
			
				
					
					|  |  |  |         collection: friendCollection, |  |  |  |         collection: contactCollection, | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |       }).render(); |  |  |  |       }).render(); | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |       this.friendListView.listenTo( |  |  |  |       this.contactListView.listenTo( | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         friendCollection, |  |  |  |         contactCollection, | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         'add change:timestamp change:name change:number change:profileName', |  |  |  |         'add change:timestamp change:name change:number change:profileName', | 
			
		
	
		
		
			
				
					
					|  |  |  |         this.friendListView.updateLocation |  |  |  |         this.contactListView.updateLocation | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |       ); |  |  |  |       ); | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |       this.listenTo( |  |  |  |       this.listenTo( | 
			
		
	
		
		
			
				
					
					|  |  |  |         friendCollection, |  |  |  |         contactCollection, | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         'remove', |  |  |  |         'remove', | 
			
		
	
		
		
			
				
					
					|  |  |  |         this.closeConversation |  |  |  |         this.contactListView.removeItem | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |       ); |  |  |  |       ); | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |       // Search
 |  |  |  |       // Search
 | 
			
		
	
	
		
		
			
				
					|  |  | @ -212,7 +212,7 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |       extension.windows.onClosed(() => { |  |  |  |       extension.windows.onClosed(() => { | 
			
		
	
		
		
			
				
					
					|  |  |  |         this.inboxListView.stopListening(); |  |  |  |         this.inboxListView.stopListening(); | 
			
		
	
		
		
			
				
					
					|  |  |  |         this.friendListView.stopListening(); |  |  |  |         this.contactListView.stopListening(); | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |       }); |  |  |  |       }); | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |       if (extension.expired()) { |  |  |  |       if (extension.expired()) { | 
			
		
	
	
		
		
			
				
					|  |  | @ -344,7 +344,6 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |     closeConversation(conversation) { |  |  |  |     closeConversation(conversation) { | 
			
		
	
		
		
			
				
					
					|  |  |  |       if (conversation) { |  |  |  |       if (conversation) { | 
			
		
	
		
		
			
				
					
					|  |  |  |         this.inboxListView.removeItem(conversation); |  |  |  |         this.inboxListView.removeItem(conversation); | 
			
		
	
		
		
			
				
					
					|  |  |  |         this.friendListView.removeItem(conversation); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         this.conversation_stack.close(conversation); |  |  |  |         this.conversation_stack.close(conversation); | 
			
		
	
		
		
			
				
					
					|  |  |  |       } |  |  |  |       } | 
			
		
	
		
		
			
				
					
					|  |  |  |     }, |  |  |  |     }, | 
			
		
	
	
		
		
			
				
					|  |  | 
 |