send our real show, when we connect to a
transport
This commit is contained in:
		
							parent
							
								
									4aa6c95398
								
							
						
					
					
						commit
						25e6d9f4aa
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -872,7 +872,8 @@ class Connection(ConnectionHandlers):
 | 
			
		|||
	def send_agent_status(self, agent, ptype):
 | 
			
		||||
		if not self.connection:
 | 
			
		||||
			return
 | 
			
		||||
		p = common.xmpp.Presence(to = agent, typ = ptype)
 | 
			
		||||
		show = helpers.get_xmpp_show(STATUS_LIST[self.connected])
 | 
			
		||||
		p = common.xmpp.Presence(to = agent, typ = ptype, show = show)
 | 
			
		||||
		p = self.add_sha(p, ptype != 'unavailable')
 | 
			
		||||
		self.connection.send(p)
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue