diff --git a/app/actions/remote/reactions.ts b/app/actions/remote/reactions.ts index 4b0b481e1..30876d572 100644 --- a/app/actions/remote/reactions.ts +++ b/app/actions/remote/reactions.ts @@ -63,7 +63,7 @@ export const addReaction = async (serverUrl: string, postId: string, emojiName: user_id: currentUserId, post_id: postId, emoji_name: emojiAlias, - create_at: Date.now(), + create_at: 0, } as Reaction, }; } catch (error) { diff --git a/app/components/post_list/post/body/reactions/reactions.tsx b/app/components/post_list/post/body/reactions/reactions.tsx index ff63db352..8abeb0cc7 100644 --- a/app/components/post_list/post/body/reactions/reactions.tsx +++ b/app/components/post_list/post/body/reactions/reactions.tsx @@ -149,7 +149,7 @@ const Reactions = ({currentUserId, canAddReaction, canRemoveReaction, disabled, showModalOverCurrentContext(screen, passProps); } } - }, [intl, postId, theme]); + }, [intl, isTablet, postId, theme]); let addMoreReactions = null; const {reactionsByName, highlightedReactions} = buildReactionsMap(); diff --git a/app/screens/reactions/emoji_bar/index.tsx b/app/screens/reactions/emoji_bar/index.tsx index 092dbbad0..56e639f1d 100644 --- a/app/screens/reactions/emoji_bar/index.tsx +++ b/app/screens/reactions/emoji_bar/index.tsx @@ -60,7 +60,7 @@ const EmojiBar = ({emojiSelected, reactionsByName, setIndex, sortedReactions}: P onPress={onPress} /> ); - }, [sortedReactions, emojiSelected, reactionsByName]); + }, [onPress, emojiSelected, reactionsByName]); useEffect(() => { const t = setTimeout(() => { diff --git a/app/screens/reactions/emoji_bar/item.tsx b/app/screens/reactions/emoji_bar/item.tsx index 3464b4e3b..ecd2467eb 100644 --- a/app/screens/reactions/emoji_bar/item.tsx +++ b/app/screens/reactions/emoji_bar/item.tsx @@ -51,7 +51,7 @@ const Reaction = ({count, emojiName, highlight, onPress}: ReactionProps) => { const handlePress = useCallback(() => { onPress(emojiName); - }, [highlight]); + }, [onPress, emojiName]); return ( { const serverUrl = useServerUrl(); const [enabled, setEnabled] = useState(false); - const listRef = useRef(null); const [direction, setDirection] = useState<'down' | 'up'>('down'); + const listRef = useRef(null); const prevOffset = useRef(0); const panResponder = useRef(PanResponder.create({ onMoveShouldSetPanResponderCapture: (evt, g) => {