update gajim.last_message_time var when a room participant changes his nick. fixes #3555
This commit is contained in:
		
							parent
							
								
									0a7669afef
								
							
						
					
					
						commit
						24413948ab
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		| 
						 | 
					@ -525,6 +525,10 @@ class MessageWindow:
 | 
				
			||||||
			return
 | 
								return
 | 
				
			||||||
		self._controls[acct][new_jid] = self._controls[acct][old_jid]
 | 
							self._controls[acct][new_jid] = self._controls[acct][old_jid]
 | 
				
			||||||
		del self._controls[acct][old_jid]
 | 
							del self._controls[acct][old_jid]
 | 
				
			||||||
 | 
							if old_jid in gajim.last_message_time[acct]:
 | 
				
			||||||
 | 
								gajim.last_message_time[acct][new_jid] = \
 | 
				
			||||||
 | 
									gajim.last_message_time[acct][old_jid]
 | 
				
			||||||
 | 
								del gajim.last_message_time[acct][old_jid]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	def controls(self):
 | 
						def controls(self):
 | 
				
			||||||
		for ctrl_dict in self._controls.values():
 | 
							for ctrl_dict in self._controls.values():
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue