Update group name colors

This commit is contained in:
Josh Perez 2021-06-07 12:50:18 -04:00 committed by GitHub
parent a374772dc8
commit df7f702dde
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 25 additions and 13 deletions

View file

@ -15,6 +15,7 @@ import { StateType } from '../reducer';
import { getIntl, getInteractionMode } from '../selectors/user';
import { renderAudioAttachment } from './renderAudioAttachment';
import { renderEmojiPicker } from './renderEmojiPicker';
import { getContactNameColorSelector } from '../selectors/conversations';
type MessageDetailProps = ComponentProps<typeof MessageDetail>;
@ -79,8 +80,17 @@ const mapStateToProps = (
showVisualAttachment,
} = props;
const contactNameColor =
message.conversationType === 'group'
? getContactNameColorSelector(state)(
message.conversationId,
message.author.id
)
: undefined;
return {
contacts,
contactNameColor,
errors,
message,
receivedAt,