Mercurial > libervia-web
comparison src/pages/chat/page_meta.py @ 1001:ae7e9ce4c64c
pages (chat): fixed call to discoInfos
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 05 Jan 2018 16:30:05 +0100 |
parents | 4cc4d49e1d0f |
children | 990e80aa43a9 |
comparison
equal
deleted
inserted
replaced
1000:4cc4d49e1d0f | 1001:ae7e9ce4c64c |
---|---|
49 profile_jid = session.jid | 49 profile_jid = session.jid |
50 if profile_jid is None: | 50 if profile_jid is None: |
51 jid_s = yield self.host.bridgeCall(u'getParamA', "JabberID", "Connection", profile_key=profile) | 51 jid_s = yield self.host.bridgeCall(u'getParamA', "JabberID", "Connection", profile_key=profile) |
52 profile_jid = session.jid = jid.JID(jid_s) | 52 profile_jid = session.jid = jid.JID(jid_s) |
53 | 53 |
54 disco = yield self.host.bridgeCall(u"discoInfos", target_jid.host, profile) | 54 disco = yield self.host.bridgeCall(u"discoInfos", target_jid.host, u'', True, profile) |
55 if "conference" in [i[0] for i in disco[1]]: | 55 if "conference" in [i[0] for i in disco[1]]: |
56 chat_type = C.CHAT_GROUP | 56 chat_type = C.CHAT_GROUP |
57 join_ret = yield self.host.bridgeCall(u"mucJoin", target_jid.userhost(), "", "", profile) | 57 join_ret = yield self.host.bridgeCall(u"mucJoin", target_jid.userhost(), "", "", profile) |
58 already_joined, room_jid_s, occupants, user_nick, room_subject, dummy = join_ret | 58 already_joined, room_jid_s, occupants, user_nick, room_subject, dummy = join_ret |
59 template_data[u'subject'] = room_subject | 59 template_data[u'subject'] = room_subject |