mirror of
https://gitee.com/mateos/mateclaw.git
synced 2026-09-15 11:58:34 +08:00
fix(feishu): register no-op handlers for reaction events (#140)
The Feishu SDK EventDispatcher had no handler registered for im.message.reaction.created_v1 / deleted_v1, so adding or removing an emoji reaction raised HandlerNotFoundException and logged an ERROR stack trace. Register no-op handlers to silently ignore these events.
This commit is contained in:
parent
dca71b5a43
commit
a386b31e9b
@ -221,6 +221,15 @@ public class FeishuChannelAdapter extends AbstractChannelAdapter {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
// 静默忽略消息表情回应事件,避免 HandlerNotFoundException
|
||||||
|
.onP2MessageReactionCreatedV1(new ImService.P2MessageReactionCreatedV1Handler() {
|
||||||
|
@Override
|
||||||
|
public void handle(com.lark.oapi.service.im.v1.model.P2MessageReactionCreatedV1 event) {}
|
||||||
|
})
|
||||||
|
.onP2MessageReactionDeletedV1(new ImService.P2MessageReactionDeletedV1Handler() {
|
||||||
|
@Override
|
||||||
|
public void handle(com.lark.oapi.service.im.v1.model.P2MessageReactionDeletedV1 event) {}
|
||||||
|
})
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
return new com.lark.oapi.ws.Client.Builder(appId, appSecret)
|
return new com.lark.oapi.ws.Client.Builder(appId, appSecret)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user