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
|
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 }}>
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue