Mercurial > libervia-web
comparison src/pages/chat/page_meta.py @ 1091:092e910292c9
pages (chat): don't change session.jid anymore, as it is now set on log-in
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 01 Jun 2018 12:56:13 +0200 |
parents | 990e80aa43a9 |
children | cdd389ef97bc |
comparison
equal
deleted
inserted
replaced
1090:9c41b7e91172 | 1091:092e910292c9 |
---|---|
45 template_data = request.template_data | 45 template_data = request.template_data |
46 rdata = self.getRData(request) | 46 rdata = self.getRData(request) |
47 target_jid = rdata['target'] | 47 target_jid = rdata['target'] |
48 profile = session.profile | 48 profile = session.profile |
49 profile_jid = session.jid | 49 profile_jid = session.jid |
50 if profile_jid is None: | |
51 jid_s = yield self.host.bridgeCall(u'getParamA', "JabberID", "Connection", profile_key=profile) | |
52 profile_jid = session.jid = jid.JID(jid_s) | |
53 | 50 |
54 disco = yield self.host.bridgeCall(u"discoInfos", target_jid.host, u'', True, profile) | 51 disco = yield self.host.bridgeCall(u"discoInfos", target_jid.host, u'', True, profile) |
55 if "conference" in [i[0] for i in disco[1]]: | 52 if "conference" in [i[0] for i in disco[1]]: |
56 chat_type = C.CHAT_GROUP | 53 chat_type = C.CHAT_GROUP |
57 join_ret = yield self.host.bridgeCall(u"mucJoin", target_jid.userhost(), "", "", profile) | 54 join_ret = yield self.host.bridgeCall(u"mucJoin", target_jid.userhost(), "", "", profile) |