Properly dimiss for PostOptions to be dismissed

This commit is contained in:
Elias Nahum 2022-02-14 17:40:16 -03:00
parent 091bd8301b
commit fa5d283715
No known key found for this signature in database
GPG key ID: E038DB71E0B61702

View file

@ -53,7 +53,7 @@ const ReactionBar = ({recentEmojis = []}: QuickReactionProps) => {
const openEmojiPicker = useCallback(async () => {
DeviceEventEmitter.emit(Events.CLOSE_BOTTOM_SHEET);
await EphemeralStore.waitUntilScreensIsRemoved(Screens.BOTTOM_SHEET);
await EphemeralStore.waitUntilScreensIsRemoved(Screens.POST_OPTIONS);
const closeButton = CompassIcon.getImageSourceSync('close', 24, theme.sidebarHeaderTextColor);
const screen = Screens.EMOJI_PICKER;