Skip to content

Commit

Permalink
add ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
walnuts1018 committed Mar 31, 2024
1 parent f49b994 commit b691abc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions slack/slack.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,11 @@ func (c *Client) GetAllMCGMembers(ctx context.Context, mustIncludeUsers ...strin
func (c *Client) ForwardMessage(ctx context.Context, everythingChannelID string, sourceChannelName string, message slackevents.MessageEvent) error {
slog.Debug("Forwarding message", "everythingChannelID", everythingChannelID, "sourceChannelName", sourceChannelName, "message", message)

if message.SubType != "" && message.SubType != "message_deleted" && message.SubType != "message_changed" {
slog.Debug("Ignored message", "message", message)
return nil
}

// Deleted, Updatedの場合は無視する
// TODO: 実装する
if message.SubType == "message_deleted" || message.SubType == "message_changed" {
Expand Down

0 comments on commit b691abc

Please sign in to comment.