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

Commit

Permalink
replies may be empty now
Browse files Browse the repository at this point in the history
  • Loading branch information
zcbenz committed Apr 5, 2020
1 parent 4e3d323 commit f3591b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/service/slack/slack-message.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ 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) {
if (event.thread_ts === event.ts && event.replies) {
this.isThreadParent = true
this.replyCount = event.reply_count
this.replyUsers = event.replies.reduce((a, r) => {
Expand Down

0 comments on commit f3591b7

Please sign in to comment.