mirror of
https://codeberg.org/monocles/monocles_chat.git
synced 2025-01-29 00:14:12 +01:00
remove unnecessary resume call
(cherry picked from commit 7455e99761bc4db96840a17eacb75a1e0210c607)
This commit is contained in:
parent
a961cd15df
commit
4ae5537f7d
1 changed files with 5 additions and 2 deletions
|
@ -1539,6 +1539,8 @@ public class XmppConnection implements Runnable {
|
|||
&& isSecure) {
|
||||
authenticate(SaslMechanism.Version.SASL);
|
||||
} else if (this.streamFeatures.hasChild("sm", Namespace.STREAM_MANAGEMENT)
|
||||
&& isSecure
|
||||
&& loginInfo != null
|
||||
&& streamId != null
|
||||
&& !inSmacksSession) {
|
||||
if (Config.EXTENDED_SM_LOGGING) {
|
||||
|
@ -1553,7 +1555,9 @@ public class XmppConnection implements Runnable {
|
|||
this.mWaitingForSmCatchup.set(true);
|
||||
this.tagWriter.writeStanzaAsync(resume);
|
||||
} else if (needsBinding) {
|
||||
if (this.streamFeatures.hasChild("bind", Namespace.BIND) && isSecure) {
|
||||
if (this.streamFeatures.hasChild("bind", Namespace.BIND)
|
||||
&& isSecure
|
||||
&& loginInfo != null) {
|
||||
sendBindRequest();
|
||||
} else {
|
||||
Log.d(
|
||||
|
@ -1564,7 +1568,6 @@ public class XmppConnection implements Runnable {
|
|||
throw new StateChangingException(Account.State.INCOMPATIBLE_SERVER);
|
||||
}
|
||||
} else {
|
||||
|
||||
Log.d(
|
||||
Config.LOGTAG,
|
||||
account.getJid().asBareJid()
|
||||
|
|
Loading…
Add table
Reference in a new issue