From 10fa85c3ad439e37807418aae1ddf5ca36628bac Mon Sep 17 00:00:00 2001 From: Silthus Date: Wed, 2 Mar 2022 20:05:41 +0100 Subject: [PATCH] fix(api): remove duplicate LeftChannel event --- .../java/net/silthus/schat/commands/LeaveChannelCommand.java | 5 ----- 1 file changed, 5 deletions(-) diff --git a/core/src/main/java/net/silthus/schat/commands/LeaveChannelCommand.java b/core/src/main/java/net/silthus/schat/commands/LeaveChannelCommand.java index 258981d52..b599b3bf4 100644 --- a/core/src/main/java/net/silthus/schat/commands/LeaveChannelCommand.java +++ b/core/src/main/java/net/silthus/schat/commands/LeaveChannelCommand.java @@ -127,7 +127,6 @@ public Result execute() { private Result leaveChannel() { chatter.leave(channel); - fireLeftChannelEvent(); return success(); } @@ -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}. *