MongooseIM
MongooseIM copied to clipboard
How can I differentiate if the member was kicked or he left?
MongooseIM version: 3.6.x Installed from: source Erlang/OTP version: 22.2
The issue is regarding removing member in muclight. There are 2 scenarios to do it :
- Admin remove members.
- Member left the room.
In both the scenarios other members in the group get same message which is :
<message from='[email protected]'
to='[email protected]'
type='groupchat'
id='memberchange'>
<x xmlns='urn:xmpp:muclight:0#affiliations'>
<user affiliation='none'>[email protected]</user>
</x>
<body></body>
</message>
How can I differentiate if the member was kicked or he left?
You can not with the current protocol, so I add an extra element to include the member id that issue the operation to various action in muclight
is there a PR for this ?