Skip to content

Commit

Permalink
perf: 消息转发插件优化,忽略礼物个数为0的消息
Browse files Browse the repository at this point in the history
  • Loading branch information
1962247851 committed Feb 11, 2025
1 parent 71928b3 commit 7330af2
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ public void onDanmuMsg(IDanmuMsg msg) {

@Override
public void onGiftMsg(IGiftMsg msg) {
this.forwardMsgHandler.doForward(webSocketLiveChatClient, msg);
if (msg.getGiftCount() > 0) {
this.forwardMsgHandler.doForward(webSocketLiveChatClient, msg);
}
}

@Override
Expand Down

0 comments on commit 7330af2

Please sign in to comment.