Skip to content
This repository has been archived by the owner on Apr 12, 2023. It is now read-only.

Commit

Permalink
Fix "view thread" not showing
Browse files Browse the repository at this point in the history
  • Loading branch information
zcbenz committed Apr 8, 2020
1 parent 25e9015 commit d76c71b
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions lib/service/slack/slack-message.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,10 @@ class SlackMessage extends Message {
this.reactions = event.reactions.map((r) => new SlackReaction(account, r.name, r.count, r.users))
if (event.thread_ts) {
this.threadId = event.thread_ts
if (event.thread_ts === event.ts && event.replies) {
if (event.thread_ts === event.ts) {
this.isThreadParent = true
this.replyCount = event.reply_count
this.replyUsers = event.replies.reduce((a, r) => {
if (!a.includes(r.user))
a.push(r.user)
return a
}, []).slice(0, 3)
this.replyUsers = event.reply_users
} else {
this.isSub = true
}
Expand Down

0 comments on commit d76c71b

Please sign in to comment.