Call Reactions fixes and emoji consistency

This commit is contained in:
ayumi-signal 2023-11-17 12:40:41 -08:00 committed by GitHub
parent b7ab1d7207
commit 32e5ac128b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 48 additions and 48 deletions

View file

@ -22,10 +22,8 @@ import { generateAci } from '../types/ServiceId';
import type { ConversationType } from '../state/ducks/conversations';
import { AvatarColors } from '../types/Colors';
import type { PropsType } from './CallScreen';
import {
CALL_REACTION_EMOJI,
CallScreen as UnwrappedCallScreen,
} from './CallScreen';
import { CallScreen as UnwrappedCallScreen } from './CallScreen';
import { DEFAULT_PREFERRED_REACTION_EMOJI } from '../reactions/constants';
import { setupI18n } from '../util/setupI18n';
import { missingCaseError } from '../util/missingCaseError';
import {
@ -612,7 +610,10 @@ export function GroupCallReactionsBurstInOrder(): JSX.Element {
const remoteParticipants = allRemoteParticipants.slice(0, 5);
const reactions = remoteParticipants.map((participant, i) => {
const { demuxId } = participant;
const value = CALL_REACTION_EMOJI[i % CALL_REACTION_EMOJI.length];
const value =
DEFAULT_PREFERRED_REACTION_EMOJI[
i % DEFAULT_PREFERRED_REACTION_EMOJI.length
];
return { timestamp, demuxId, value };
});
const [props] = React.useState(
@ -651,7 +652,7 @@ function useReactionsEmitter(
{
timestamp: timeNow,
demuxId,
value: sample(CALL_REACTION_EMOJI) as string,
value: sample(DEFAULT_PREFERRED_REACTION_EMOJI) as string,
},
];