safety net in joinMuc
This commit is contained in:
parent
39a3f372dd
commit
eb0f8c08bd
|
@ -1301,10 +1301,12 @@ public class XmppConnectionService extends Service {
|
||||||
account.pendingConferenceJoins.remove(conversation);
|
account.pendingConferenceJoins.remove(conversation);
|
||||||
account.pendingConferenceLeaves.remove(conversation);
|
account.pendingConferenceLeaves.remove(conversation);
|
||||||
if (account.getStatus() == Account.State.ONLINE) {
|
if (account.getStatus() == Account.State.ONLINE) {
|
||||||
Log.d(Config.LOGTAG,
|
final String nick = conversation.getMucOptions().getProposedNick();
|
||||||
"joining conversation " + conversation.getContactJid());
|
final Jid joinJid = conversation.getMucOptions().createJoinJid(nick);
|
||||||
String nick = conversation.getMucOptions().getProposedNick();
|
if (joinJid == null) {
|
||||||
Jid joinJid = conversation.getMucOptions().createJoinJid(nick);
|
return; //safety net
|
||||||
|
}
|
||||||
|
Log.d(Config.LOGTAG,account.getJid().toBareJid().toString()+": joining conversation " + joinJid.toString());
|
||||||
PresencePacket packet = new PresencePacket();
|
PresencePacket packet = new PresencePacket();
|
||||||
packet.setFrom(conversation.getAccount().getJid());
|
packet.setFrom(conversation.getAccount().getJid());
|
||||||
packet.setTo(joinJid);
|
packet.setTo(joinJid);
|
||||||
|
|
Loading…
Reference in New Issue