Don't fetch messages from the background
Only fetch them from a frontend view. If the conversation is not open, we don't need to load the messages, and if we do load them, they will render before we've done the initial contact info loading (as implemented in 74e96ce). Fixes #344 // FREEBIE
This commit is contained in:
		
					parent
					
						
							
								bd5f43bdb1
							
						
					
				
			
			
				commit
				
					
						d89e3ccdc4
					
				
			
		
					 3 changed files with 6 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -87,7 +87,7 @@
 | 
			
		|||
            conversation.fetch();
 | 
			
		||||
        }
 | 
			
		||||
        if (inboxOpened) {
 | 
			
		||||
            conversation.fetchMessages();
 | 
			
		||||
            conversation.trigger('newmessages');
 | 
			
		||||
            extension.windows.drawAttention(inboxWindowId);
 | 
			
		||||
        } else if (Whisper.Notifications.isEnabled()) {
 | 
			
		||||
            var sender = ConversationController.create({id: message.get('source')});
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue