Fix thread timestamp checking

This commit is contained in:
erroneousboat 2019-01-05 13:58:17 +01:00
parent cb58a10f8b
commit 56cad01ce0

View File

@ -442,7 +442,7 @@ func (s *SlackService) CreateMessageFromReplies(message slack.Message, channelID
//
// Keep in mind that the api returns the replies with the latest
// as the first element.
if message.ThreadTimestamp != "" && message.ThreadTimestamp == message.Timestamp {
if reply.ThreadTimestamp != "" && reply.ThreadTimestamp == reply.Timestamp {
continue
}