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

Add reason for removing participant from room #1422

Merged
merged 1 commit into from
Feb 28, 2019

Conversation

Peterede
Copy link
Contributor

The removeParticipantBySession function is called when a user is removed by a moderator and also when the user leaves by themselves, for a hook that performs an action when a user is removed there needs to be a flag to indicate that the moderator removed the user. I have added a $reason parameter which can be 'remove' for a moderator and 'leave' if the user just left.

lib/Controller/RoomController.php Outdated Show resolved Hide resolved
lib/Room.php Outdated Show resolved Hide resolved
@nickvergessen nickvergessen force-pushed the remove_participant_reason branch 2 times, most recently from 6dcd898 to dde3785 Compare January 14, 2019 15:05
@nickvergessen
Copy link
Member

Rebased to fix conflicts and and also added it to the event of removeUser

…ine if the user was removed by moderator.

Signed-off-by: Peter Edens <petere@conceiva.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4. to release enhancement feature: api 🛠️ OCS API for conversations, chats and participants
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants