diff --git a/README.rst b/README.rst index 4ac96bc3f0..36ac5b1f26 100644 --- a/README.rst +++ b/README.rst @@ -23,24 +23,25 @@ Supported protocols * RFC-3920: Core * RFC-3921: Instant Messaging and Presence * XEP-0030: Service Discovery -* XEP-0128: Service Discovery Extensions -* XEP-0115: Entity Capabilities -* XEP-0054: vcard-temp -* XEP-0153: vCard-Based Avatars * XEP-0045: Multi-User Chat (incompletely) +* XEP-0054: vcard-temp +* XEP-0059: Result Set Management +* XEP-0077: In-Band Registration * XEP-0078: Non-SASL Authentication -* XEP-0138: Stream Compression -* XEP-0203: Delayed Delivery +* XEP-0085: Chat State Notifications * XEP-0091: Legacy Delayed Delivery -* XEP-0199: XMPP Ping +* XEP-0115: Entity Capabilities +* XEP-0128: Service Discovery Extensions +* XEP-0136: Message Archiving +* XEP-0138: Stream Compression * XEP-0147: XMPP URI Scheme Query Components -* XEP-0085: Chat State Notifications -* XEP-0184: Message Delivery Receipts +* XEP-0153: vCard-Based Avatars * XEP-0155: Stanza Session Negotiation -* XEP-0059: Result Set Management -* XEP-0136: Message Archiving +* XEP-0184: Message Delivery Receipts +* XEP-0198: Stream Management +* XEP-0199: XMPP Ping +* XEP-0203: Delayed Delivery * XEP-0224: Attention -* XEP-0077: In-Band Registration * XEP-0352: Client State Indication Translations diff --git a/xabber/src/main/java/com/xabber/android/data/connection/ConnectionThread.java b/xabber/src/main/java/com/xabber/android/data/connection/ConnectionThread.java index b14ca58c0d..43826e8f03 100644 --- a/xabber/src/main/java/com/xabber/android/data/connection/ConnectionThread.java +++ b/xabber/src/main/java/com/xabber/android/data/connection/ConnectionThread.java @@ -86,7 +86,7 @@ public class ConnectionThread implements /** * SMACK connection. */ - private AbstractXMPPConnection xmppConnection; + private XMPPTCPConnection xmppConnection; /** * Thread holder for this connection. @@ -213,6 +213,10 @@ private void onReady(XMPPTCPConnectionConfiguration.Builder builder) { xmppConnection.addAsyncStanzaListener(this, ACCEPT_ALL); xmppConnection.addConnectionListener(this); + // enable Stream Management support. SMACK will only enable SM if supported by the server, + // so no additional checks are required. + xmppConnection.setUseStreamManagement(true); + // by default Smack disconnects in case of parsing errors xmppConnection.setParsingExceptionCallback(new ExceptionLoggingCallback());