Get stanza by id

Hello there!
I am using smack 4.4.6
I want to find stanza message using stazaId, which class to use, or manager? or search by originID, which I activated like this:

@Bean
    public boolean enableUniqueStanzaId(XMPPTCPConnection connection) {
        StableUniqueStanzaIdManager instanceFor = StableUniqueStanzaIdManager.getInstanceFor(connection);
        instanceFor.enable();
        StableUniqueStanzaIdManager.setEnabledByDefault(true);
        log.info("Is stanzaId unique:{}", instanceFor.isEnabled());
        return instanceFor.isEnabled();
    }

This topic was automatically closed 62 days after the last reply. New replies are no longer allowed.