Muc addPresenceInterceptor

According to the javadoc to be able to modify a presence before sending one can use addPresenceInterceptor:

But I see it uses addStanzaSendingListener:

Which is fired after the packet is sent:

I’m I reading it wrong or it is a bug?

It is a bug. MultiUserChat should use XMPPConnection.addPresenceInterceptor(). However this would require API changes, which is a reason to not do it for Smack 4.4, and only fix it in the main branch.

Created SMACK-925. Since the functionaliy is broken is Smack 4.4 anyways, I think breaking the API in this regard shoud not be an issue. If anything, it makes the user aware that something, that’s been used, is broken.

1 Like
2 Likes

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