Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
thisisamir98 committed Jan 30, 2024
1 parent e6c8f09 commit 77b76c6
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,13 @@ export class EventStorageMiddleware implements EventMiddleware {

private validateEvent(event: HandledEvents, duplicateEvent?: EventRecord) {
if (event.type === CONVERSATION_EVENT.MEMBER_LEAVE) {
/* When we receive a `member-leave` event, we should check that the user is actually still part of the conversation before forwarding the event. If the user is already not part of the conversation, then we can throw a validation error (that means the user was already removed by another member-leave event) */

/*
When we receive a `member-leave` event,
we should check that the user is actually still part of the
conversation before forwarding the event. If the user is already not part
of the conversation, then we can throw a validation error
(that means the user was already removed by another member-leave event)
*/
if (!event.qualified_conversation) {
return;
}
Expand Down

0 comments on commit 77b76c6

Please sign in to comment.