MongooseIM icon indicating copy to clipboard operation
MongooseIM copied to clipboard

How can I differentiate if the member was kicked or he left?

Open jaspreet-android opened this issue 4 years ago • 2 comments

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 :

  1. Admin remove members.
  2. 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?

jaspreet-android avatar Aug 04 '20 16:08 jaspreet-android

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

zhiphe avatar Nov 16 '20 08:11 zhiphe

is there a PR for this ?

jaspreet-android avatar Nov 22 '20 06:11 jaspreet-android