Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/CylonicRaider/heim
Browse files Browse the repository at this point in the history
  • Loading branch information
logan committed Aug 20, 2016
2 parents 460f07c + 0ded7a5 commit 2fdd334
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client/lib/ui/NotificationListItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export default React.createClass({

return (
<FastButton component="div" className={classNames('notification', this.props.kind, {'seen': message.get('_seen')})} onClick={ev => this.props.onClick(ev, this.props.nodeId)}>
<MessageText className="title" content={message.get('content')} maxLength={140} />
<MessageText className="title" content={(message.get('content') || '').trim()} maxLength={140} />
<LiveTimeAgo className="ago" time={message.get('time')} nowText="active" />
</FastButton>
)
Expand Down
2 changes: 1 addition & 1 deletion client/lib/ui/ThreadListItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ const ThreadListItem = React.createClass({
return (
<div className="thread">
<FastButton component="div" data-thread-id={this.props.threadNodeId} className={classNames('info', {'selected': this.state.threadData.get('selected'), 'active': isActive})} onClick={ev => this.props.onClick(ev, this.props.threadNodeId)}>
<MessageText className="title" content={message.get('content')} maxLength={140} />
<MessageText className="title" content={(message.get('content') || '').trim()} maxLength={140} />
{newCount > 0 && <span className={classNames('new-count', {'new-mention': count.get('newMentionDescendants') > 0})}>{newCount}</span>}
<LiveTimeAgo className="ago" time={timestamp} nowText="active" />
</FastButton>
Expand Down

0 comments on commit 2fdd334

Please sign in to comment.