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

This commit is contained in:
Alex Gleason 2023-02-14 12:36:15 -06:00
parent 2a131a8407
commit f271553213
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
3 changed files with 3 additions and 3 deletions

View File

@ -71,7 +71,7 @@ Object.assign(navigator, {
const store = rootState const store = rootState
.set('me', '1') .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( const renderComponentWithChatContext = () => render(
<VirtuosoMockContext.Provider value={{ viewportHeight: 300, itemHeight: 100 }}> <VirtuosoMockContext.Provider value={{ viewportHeight: 300, itemHeight: 100 }}>

View File

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

View File

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