Fix highlight on messages without time
This commit is contained in:
		
							parent
							
								
									b8444fec64
								
							
						
					
					
						commit
						a9a115d359
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -1438,7 +1438,7 @@ class GroupchatControl(ChatControlBase):
 | 
				
			||||||
            sound = 'received'
 | 
					            sound = 'received'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        # Is it a history message? Don't want sound-floods when we join.
 | 
					        # Is it a history message? Don't want sound-floods when we join.
 | 
				
			||||||
        if time.mktime(time.localtime()) - tim > 1:
 | 
					        if tim is not None and time.mktime(time.localtime()) - tim > 1:
 | 
				
			||||||
            sound = None
 | 
					            sound = None
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        return (highlight, sound)
 | 
					        return (highlight, sound)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue