fix(thread-list): Unread gem hover state should override "star"

Fixes T3216
This commit is contained in:
Ben Gotow 2015-08-11 10:01:40 -07:00
parent 8edbec2dd6
commit 8107be6ec4

View file

@ -19,7 +19,7 @@ class ThreadListIcon extends React.Component
return 'thread-icon-star'
if @props.thread.unread
return 'thread-icon-unread thread-icon-star-on-hover'
return 'thread-icon-unread'
msgs = @_nonDraftMessages()
last = msgs[msgs.length - 1]
@ -27,9 +27,9 @@ class ThreadListIcon extends React.Component
myEmail = NamespaceStore.current()?.emailAddress
if msgs.length > 1 and last.from[0]?.email is myEmail
if Utils.isForwardedMessage(last)
return 'thread-icon-forwarded thread-icon-star-on-hover'
return 'thread-icon-forwarded'
else
return 'thread-icon-replied thread-icon-star-on-hover'
return 'thread-icon-replied'
return 'thread-icon-star-on-hover'