mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-28 11:42:15 -05:00
use proposed nick as default nick in mucoptions
This commit is contained in:
parent
6b592435cd
commit
242887447c
@ -246,7 +246,7 @@ public class MucOptions {
|
|||||||
public MucOptions(Conversation conversation) {
|
public MucOptions(Conversation conversation) {
|
||||||
this.account = conversation.getAccount();
|
this.account = conversation.getAccount();
|
||||||
this.conversation = conversation;
|
this.conversation = conversation;
|
||||||
this.self = new User(this,conversation.getJid());
|
this.self = new User(this,createJoinJid(getProposedNick()));
|
||||||
}
|
}
|
||||||
|
|
||||||
public void updateFeatures(ArrayList<String> features) {
|
public void updateFeatures(ArrayList<String> features) {
|
||||||
|
@ -1,11 +1,8 @@
|
|||||||
package eu.siacs.conversations.parser;
|
package eu.siacs.conversations.parser;
|
||||||
|
|
||||||
import android.util.Log;
|
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import eu.siacs.conversations.Config;
|
|
||||||
import eu.siacs.conversations.crypto.PgpEngine;
|
import eu.siacs.conversations.crypto.PgpEngine;
|
||||||
import eu.siacs.conversations.entities.Account;
|
import eu.siacs.conversations.entities.Account;
|
||||||
import eu.siacs.conversations.entities.Contact;
|
import eu.siacs.conversations.entities.Contact;
|
||||||
@ -93,7 +90,6 @@ public class PresenceParser extends AbstractParser implements
|
|||||||
} else {
|
} else {
|
||||||
mXmppConnectionService.fetchAvatar(mucOptions.getAccount(), avatar);
|
mXmppConnectionService.fetchAvatar(mucOptions.getAccount(), avatar);
|
||||||
}
|
}
|
||||||
Log.d(Config.LOGTAG, "user " + avatar.owner + " has avatar");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1720,9 +1720,6 @@ public class XmppConnectionService extends Service implements OnPhoneContactsLoa
|
|||||||
Account account = conversation.getAccount();
|
Account account = conversation.getAccount();
|
||||||
final String nick = conversation.getMucOptions().getProposedNick();
|
final String nick = conversation.getMucOptions().getProposedNick();
|
||||||
final Jid joinJid = conversation.getMucOptions().createJoinJid(nick);
|
final Jid joinJid = conversation.getMucOptions().createJoinJid(nick);
|
||||||
if (joinJid == null) {
|
|
||||||
return; //safety net
|
|
||||||
}
|
|
||||||
Log.d(Config.LOGTAG, account.getJid().toBareJid().toString() + ": joining conversation " + joinJid.toString());
|
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());
|
||||||
|
Loading…
Reference in New Issue
Block a user