Skip to content

Commit

Permalink
@全体时,机器人不回复
Browse files Browse the repository at this point in the history
  • Loading branch information
heavyrain2012 committed Oct 25, 2019
1 parent 9815e25 commit 7387cda
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/cn/wildfirechat/app/ServiceImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ public RestResult onReceiveMessage(SendMessageData messageData) {
if (!needResponse && messageData.getConv().getType() == 1) {
if (messageData.getPayload() != null) {
if (messageData.getPayload().getMentionedType() == 2) {
needResponse = true;
//needResponse = true;
needResponse = false; //@全体时,机器人就别乱回复捣乱了
} else if (messageData.getPayload().getMentionedType() == 1) {
if (messageData.getPayload().getMentionedTarget() != null && messageData.getPayload().getMentionedTarget().contains(mRobotConfig.getIm_id())) {
needResponse = true;
Expand Down

0 comments on commit 7387cda

Please sign in to comment.