-
-
Save ammezie/187547bedb9b4194d5662232bec2779d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// resources/views/js/ChatRoom.vue | |
this.channel.on("member.removed", event => { | |
this.members = this.members.filter(member => { | |
return member.user.id !== event.user.id; | |
}); | |
this.status = `${event.user.name} just left the chat`; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment