Blocking / privacy & MUC
We would like to be able to have a user block all communications from another user as described in http://xmpp.org/extensions/xep-0016.html#protocol-all
When the users are in MUC it does not block the messages unless you block the room/nickname JID, which seems difficult to maintain. I tried making the rooms non-anonymous
(muc/default_room_config/muc#roomconfig_anonymity=nonanonymous) but that did not seem to change the message stanza to include the user's real JID in the from field so it could be blocked appropriately.
Is there another way you would recommend approaching this?
Thanks for your help,
Added by Wojciech Kapcia almost 3 years ago
This is a result of MUC specification which defines format of the broadcast messages, and most importantly, that the
from attribute has to have room address and user nickname as a resource.
What you want could be possible but it would require:
straying a bit from the specification
modifying MUC component to include original from (I would say that including XEP-0033: Extended Stanza Addressing in a manner similar to described in Discussion History part of MUC specification should work);
modifying Privacy Lists plugin to also handle those extended addressing parts.
Please bare in mind, that those would work only with Tigase instances with the same modifications or within your own installation.