Skip to content

Commit

Permalink
fix(api): remove duplicate LeftChannel event
Browse files Browse the repository at this point in the history
  • Loading branch information
Silthus committed Mar 2, 2022
1 parent 7277692 commit 10fa85c
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@ public Result execute() {

private Result leaveChannel() {
chatter.leave(channel);
fireLeftChannelEvent();
return success();
}

Expand All @@ -136,10 +135,6 @@ private LeaveChannelEvent fireLeaveChannelEvent() {
.orElse(LEAVE_CHANNEL_POLICY)));
}

private void fireLeftChannelEvent() {
eventBus.post(new ChatterLeftChannelEvent(chatter, channel));
}

/**
* The builder of the {@link LeaveChannelCommand}.
*
Expand Down

0 comments on commit 10fa85c

Please sign in to comment.