Fix type of chat_message.emoji_reactions, fix tests with +unreleased

environments/review-gate-chat-7zd31w/deployments/2623
Alex Gleason 2 years ago
parent 2a131a8407
commit f271553213
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7

@ -71,7 +71,7 @@ Object.assign(navigator, {
const store = rootState
.set('me', '1')
.set('instance', normalizeInstance({ version: '3.4.1 (compatible; TruthSocial 1.0.0)' }));
.set('instance', normalizeInstance({ version: '3.4.1 (compatible; TruthSocial 1.0.0+unreleased)' }));
const renderComponentWithChatContext = () => render(
<VirtuosoMockContext.Provider value={{ viewportHeight: 300, itemHeight: 100 }}>

@ -307,7 +307,7 @@ const ChatMessage = (props: IChatMessage) => {
</Stack>
</HStack>
{(chatMessage.emoji_reactions.size > 0) ? (
{(chatMessage.emoji_reactions?.size) ? (
<div
className={clsx({
'space-y-1': true,

@ -20,7 +20,7 @@ export const ChatMessageRecord = ImmutableRecord({
created_at: '',
emojis: ImmutableList<Emoji>(),
expiration: null as number | null,
emoji_reactions: ImmutableList<EmojiReaction>(),
emoji_reactions: null as ImmutableList<EmojiReaction> | null,
id: '',
unread: false,
deleting: false,

Loading…
Cancel
Save