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

Commit

Permalink
Direct messages do not support thread
Browse files Browse the repository at this point in the history
  • Loading branch information
zcbenz committed Dec 25, 2018
1 parent 6b44a1f commit 4f36fe1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/view/chat-box.js
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ handlebars.registerHelper('isChannel', function(messageList, options) {
})

handlebars.registerHelper('canStartThread', function(messageList, message, options) {
if (messageList.type !== 'thread' && (!message.threadId || message.isThreadParent))
if (messageList.type === 'channel' && (!message.threadId || message.isThreadParent))
return options.fn(this)
else
return options.inverse(this)
Expand Down

0 comments on commit 4f36fe1

Please sign in to comment.