_ = require 'underscore'
React = require 'react'
classNames = require 'classnames'
{ListTabular,
RetinaImg,
MailLabelSet,
MailImportantIcon,
InjectedComponentSet} = require 'nylas-component-kit'
{Thread, FocusedPerspectiveStore, Utils} = require 'nylas-exports'
{ThreadArchiveQuickAction,
ThreadTrashQuickAction} = require './thread-list-quick-actions'
ThreadListParticipants = require './thread-list-participants'
ThreadListStore = require './thread-list-store'
ThreadListIcon = require './thread-list-icon'
TimestampComponentForPerspective = (thread) ->
if FocusedPerspectiveStore.current().isSent()
{Utils.shortTimeString(thread.lastMessageSentTimestamp)}
else
{Utils.shortTimeString(thread.lastMessageReceivedTimestamp)}
subject = (subj) ->
if (subj ? "").trim().length is 0
return (No Subject)
else if subj.split(/([\uD800-\uDBFF][\uDC00-\uDFFF])/g).length > 1
subjComponents = []
subjParts = subj.split /([\uD800-\uDBFF][\uDC00-\uDFFF])/g
for part in subjParts
if part.match /([\uD800-\uDBFF][\uDC00-\uDFFF])/g
subjComponents.push {part}
else
subjComponents.push {part}
return subjComponents
else
return subj
c1 = new ListTabular.Column
name: "★"
resolver: (thread) =>
[