(context webhook.Context)
| 117 | } |
| 118 | |
| 119 | func (*feishuReceiver) Post(context webhook.Context) error { |
| 120 | if context.DirectMessage && len(context.MentionEndUsers) > 0 { |
| 121 | if postDirectMessage(context) { |
| 122 | return nil |
| 123 | } |
| 124 | } |
| 125 | return postMessage(context) |
| 126 | } |
| 127 | |
| 128 | func postDirectMessage(webhookCtx webhook.Context) bool { |
| 129 | feishu := getFeishuConfig(webhookCtx.IMSetting) |
nothing calls this directly
no test coverage detected