Change the icon to "reply-all" when reply to other accounts (#9378)
This commit is contained in:
		
							parent
							
								
									6e49907ecf
								
							
						
					
					
						commit
						c1693827ae
					
				
					 2 changed files with 12 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -151,6 +151,13 @@ class ActionBar extends React.PureComponent {
 | 
			
		|||
      <div className='detailed-status__button'><IconButton title={intl.formatMessage(messages.share)} icon='share-alt' onClick={this.handleShare} /></div>
 | 
			
		||||
    );
 | 
			
		||||
 | 
			
		||||
    let replyIcon;
 | 
			
		||||
    if (status.get('in_reply_to_id', null) === null) {
 | 
			
		||||
      replyIcon = 'reply';
 | 
			
		||||
    } else {
 | 
			
		||||
      replyIcon = 'reply-all';
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    let reblogIcon = 'retweet';
 | 
			
		||||
    if (status.get('visibility') === 'direct') reblogIcon = 'envelope';
 | 
			
		||||
    else if (status.get('visibility') === 'private') reblogIcon = 'lock';
 | 
			
		||||
| 
						 | 
				
			
			@ -159,7 +166,7 @@ class ActionBar extends React.PureComponent {
 | 
			
		|||
 | 
			
		||||
    return (
 | 
			
		||||
      <div className='detailed-status__action-bar'>
 | 
			
		||||
        <div className='detailed-status__button'><IconButton title={intl.formatMessage(messages.reply)} icon='reply' onClick={this.handleReplyClick} /></div>
 | 
			
		||||
        <div className='detailed-status__button'><IconButton title={intl.formatMessage(messages.reply)} icon={status.get('in_reply_to_account_id') === status.getIn(['account', 'id']) ? 'reply' : replyIcon} onClick={this.handleReplyClick} /></div>
 | 
			
		||||
        <div className='detailed-status__button'><IconButton disabled={reblog_disabled} active={status.get('reblogged')} title={reblog_disabled ? intl.formatMessage(messages.cannot_reblog) : intl.formatMessage(messages.reblog)} icon={reblogIcon} onClick={this.handleReblogClick} /></div>
 | 
			
		||||
        <div className='detailed-status__button'><IconButton className='star-icon' animate active={status.get('favourited')} title={intl.formatMessage(messages.favourite)} icon='star' onClick={this.handleFavouriteClick} /></div>
 | 
			
		||||
        {shareButton}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Reference in a new issue