Update last seen indicator even if window doesn't have focus
FREEBIE
This commit is contained in:
		
					parent
					
						
							
								72019eb79c
							
						
					
				
			
			
				commit
				
					
						e023c58883
					
				
			
		
					 1 changed files with 4 additions and 1 deletions
				
			
		|  | @ -327,7 +327,10 @@ | ||||||
|             this.model.messageCollection.add(message, {merge: true}); |             this.model.messageCollection.add(message, {merge: true}); | ||||||
|             message.setToExpire(); |             message.setToExpire(); | ||||||
| 
 | 
 | ||||||
|             if (!this.isHidden() && window.isFocused()) { |             if (!this.isHidden() && !window.isFocused()) { | ||||||
|  |                 this.updateLastSeenIndicator(); | ||||||
|  |             } | ||||||
|  |             else if (!this.isHidden() && window.isFocused()) { | ||||||
|                 this.removeLastSeenIndicator(); |                 this.removeLastSeenIndicator(); | ||||||
|                 this.markRead(); |                 this.markRead(); | ||||||
|             } |             } | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Scott Nonnenberg
				Scott Nonnenberg