demo enter
This commit is contained in:
parent
50e4e565a8
commit
21831e4340
1 changed files with 9 additions and 0 deletions
|
@ -8,13 +8,19 @@ import im.conversations.android.xmpp.manager.AxolotlManager;
|
|||
import im.conversations.android.xmpp.manager.BlockingManager;
|
||||
import im.conversations.android.xmpp.manager.BookmarkManager;
|
||||
import im.conversations.android.xmpp.manager.DiscoManager;
|
||||
import im.conversations.android.xmpp.manager.MultiUserChatManager;
|
||||
import im.conversations.android.xmpp.manager.PresenceManager;
|
||||
import im.conversations.android.xmpp.manager.RosterManager;
|
||||
import java.util.function.Consumer;
|
||||
import org.jxmpp.jid.Jid;
|
||||
import org.jxmpp.jid.impl.JidCreate;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
public class BindProcessor extends XmppConnection.Delegate implements Consumer<Jid> {
|
||||
|
||||
private static final Logger LOGGER = LoggerFactory.getLogger(BindProcessor.class);
|
||||
|
||||
public BindProcessor(final Context context, final XmppConnection connection) {
|
||||
super(context, connection);
|
||||
}
|
||||
|
@ -44,5 +50,8 @@ public class BindProcessor extends XmppConnection.Delegate implements Consumer<J
|
|||
getManager(AxolotlManager.class).publishIfNecessary();
|
||||
|
||||
getManager(PresenceManager.class).sendPresence();
|
||||
|
||||
getManager(MultiUserChatManager.class)
|
||||
.enter(JidCreate.bareFromOrThrowUnchecked("xsf@muc.xmpp.org"));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue