Skip to content
Snippets Groups Projects
Commit 25e6d9f4 authored by dkirov's avatar dkirov
Browse files

send our real show, when we connect to a

transport
parent 4aa6c953
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment