Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jaspreet-android opened this issue Aug 4, 2020 · 2 comments
Open

Comments

@jaspreet-android
Copy link

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='coven@muclight.shakespeare.lit'
         to='hag88@shakespeare.lit'
         type='groupchat'
         id='memberchange'>
    <x xmlns='urn:xmpp:muclight:0#affiliations'>
        <user affiliation='none'>hag88@shakespeare.lit</user>
    </x>
    <body></body>
</message>

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

@zhiphe
Copy link

zhiphe commented Nov 16, 2020

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

@jaspreet-android
Copy link
Author

is there a PR for this ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants