Skip to content

Quote original thread message if enough time has passed. #71

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nolanlum
Copy link
Owner

Fixes #54.

@nolanlum nolanlum requested a review from Koshroy April 14, 2021 01:47
Copy link
Collaborator

@Koshroy Koshroy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the refactor!

}

messageText := sc.ParseMessageText(subMessage.Text)
for _, attachment := range subMessage.Attachments {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we're overwriting messageText each time, why don't we just grab the first or last attachment in subMessage.Attachments instead?

}
}

if messageData.Channel != "" {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want to un-nest the conditional here and do what you did above?

if messageData.Channel == "" {
    return
}

and then do the rest of the logic?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Quote original message on thread reply if some time has passed.
2 participants