teeny-tiny fix
This commit is contained in:
		
							parent
							
								
									b21a1e2489
								
							
						
					
					
						commit
						5a772a046c
					
				
					 2 changed files with 4 additions and 3 deletions
				
			
		| 
						 | 
					@ -1034,6 +1034,7 @@ class Interface:
 | 
				
			||||||
			win.set_values(vcard)
 | 
								win.set_values(vcard)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		# show avatar in chat
 | 
							# show avatar in chat
 | 
				
			||||||
 | 
							ctrl = None
 | 
				
			||||||
		if resource and self.msg_win_mgr.has_window(fjid, account):
 | 
							if resource and self.msg_win_mgr.has_window(fjid, account):
 | 
				
			||||||
			win = self.msg_win_mgr.get_window(fjid, account)
 | 
								win = self.msg_win_mgr.get_window(fjid, account)
 | 
				
			||||||
			ctrl = win.get_control(fjid, account)
 | 
								ctrl = win.get_control(fjid, account)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -445,11 +445,11 @@ class MessageWindow(object):
 | 
				
			||||||
		fjid = ctrl.get_full_jid()
 | 
							fjid = ctrl.get_full_jid()
 | 
				
			||||||
		jid = gajim.get_jid_without_resource(fjid)
 | 
							jid = gajim.get_jid_without_resource(fjid)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		fctrls = self.get_controls(fjid, ctrl.account)
 | 
							fctrl = self.get_control(fjid, ctrl.account)
 | 
				
			||||||
		bctrls = self.get_controls(jid, ctrl.account)
 | 
							bctrl = self.get_control(jid, ctrl.account)
 | 
				
			||||||
		# keep last_message_time around unless this was our last control with
 | 
							# keep last_message_time around unless this was our last control with
 | 
				
			||||||
		# that jid
 | 
							# that jid
 | 
				
			||||||
		if not fctrls and not bctrls:
 | 
							if not fctrl and not bctrl:
 | 
				
			||||||
			del gajim.last_message_time[ctrl.account][fjid]
 | 
								del gajim.last_message_time[ctrl.account][fjid]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		# Disconnect tab DnD only if GTK version < 2.10
 | 
							# Disconnect tab DnD only if GTK version < 2.10
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue