Wait until bottom sheet closes before adding the reaction (#6299)
This commit is contained in:
parent
e883186fde
commit
b0e425ce07
1 changed files with 2 additions and 2 deletions
|
|
@ -49,9 +49,9 @@ const ReactionBar = ({recentEmojis = [], postId}: QuickReactionProps) => {
|
|||
const isSmallDevice = width < SMALL_ICON_BREAKPOINT;
|
||||
const styles = getStyleSheet(theme);
|
||||
|
||||
const handleEmojiPress = useCallback((emoji: string) => {
|
||||
const handleEmojiPress = useCallback(async (emoji: string) => {
|
||||
await dismissBottomSheet(Screens.POST_OPTIONS);
|
||||
addReaction(serverUrl, postId, emoji);
|
||||
dismissBottomSheet(Screens.POST_OPTIONS);
|
||||
}, [postId, serverUrl]);
|
||||
|
||||
const openEmojiPicker = useCallback(async () => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue