Fix type of chat_message.emoji_reactions, fix tests with +unreleased
This commit is contained in:
parent
2a131a8407
commit
f271553213
|
@ -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…
Reference in New Issue