Add badges to @-mentions picker

This commit is contained in:
Evan Hahn 2021-11-17 12:38:52 -06:00 committed by GitHub
parent 79913f7e10
commit 4dd9232c36
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 55 additions and 21 deletions

View file

@ -10,6 +10,7 @@ import type { StateType } from '../reducer';
import { isConversationSMSOnly } from '../../util/isConversationSMSOnly';
import { dropNull } from '../../util/dropNull';
import { getPreferredBadgeSelector } from '../selectors/badges';
import { selectRecentEmojis } from '../selectors/emojis';
import { getIntl, getTheme, getUserConversationId } from '../selectors/user';
import { getEmojiSkinTone } from '../selectors/items';
@ -80,6 +81,7 @@ const mapStateToProps = (state: StateType, props: ExternalProps) => {
conversationId: id,
i18n: getIntl(state),
theme: getTheme(state),
getPreferredBadge: getPreferredBadgeSelector(state),
// AudioCapture
errorDialogAudioRecorderType:
state.audioRecorder.errorDialogAudioRecorderType,