Draft channel indicator to ignore message with whitespaces only (#2209)

This commit is contained in:
Elias Nahum 2018-10-03 09:44:32 -03:00 committed by Joram Wilander
parent ea0f454d2a
commit 29d975ceef

View file

@ -78,7 +78,7 @@ function makeMapStateToProps() {
fake: channel.fake,
isChannelMuted: isChannelMuted(member),
isMyUser,
hasDraft: Boolean(channelDraft.draft || channelDraft.files.length),
hasDraft: Boolean(channelDraft.draft.trim() || channelDraft.files.length),
mentions: member ? member.mention_count : 0,
shouldHideChannel,
showUnreadForMsgs,