Chat markers support in smack (xep-0333)

There is no ETA. Depending on your requirements you may want to look into the Smack 4.4 alpha/beta or snapshot releases.

1 Like

thanks for the quick response!

not going to use alphas/betas in my project, i’ll wait for the next regular release. i’ll have a workaround based on the types available in 4.3.4 for now:

connection.addAsyncStanzaListener(
    StanzaListener { stanza ->
        (stanza
            .getExtensions(ChatMarkersElements.DisplayedExtension.ELEMENT, ChatMarkersElements.NAMESPACE)
            .find { it is ChatMarkersElements.DisplayedExtension } as? ChatMarkersElements.DisplayedExtension)
            ?.run { receipts.onNext(XmppReceipt(id, stanza, ChatItem.ReceiptStatus.READ)) }
    },
    StanzaExtensionFilter(ChatMarkersElements.NAMESPACE)
)

but would be good to use a proper solution. hopefully with a new release soon(ish?) :smiley: