diff --git a/shared/chat/conversation/input-area/normal2/set-explode-popup/hooks.tsx b/shared/chat/conversation/input-area/normal2/set-explode-popup/hooks.tsx index 1552f0f23d43..eefb678ad018 100644 --- a/shared/chat/conversation/input-area/normal2/set-explode-popup/hooks.tsx +++ b/shared/chat/conversation/input-area/normal2/set-explode-popup/hooks.tsx @@ -31,8 +31,10 @@ export default (p: Props) => { const selected = Chat.useChatContext(s => s.explodingMode) const onSelect = React.useCallback( (seconds: number) => { - setExplodingMode(seconds) - onAfterSelect?.(seconds) + setTimeout(() => { + setExplodingMode(seconds) + onAfterSelect?.(seconds) + }, 0) }, [setExplodingMode, onAfterSelect] ) diff --git a/shared/chat/conversation/input-area/normal2/set-explode-popup/index.native.tsx b/shared/chat/conversation/input-area/normal2/set-explode-popup/index.native.tsx index b8dac9cfaa37..2cf4be652e33 100644 --- a/shared/chat/conversation/input-area/normal2/set-explode-popup/index.native.tsx +++ b/shared/chat/conversation/input-area/normal2/set-explode-popup/index.native.tsx @@ -18,7 +18,6 @@ const SetExplodePopup = (p: Props) => { const items = props.items.map(item => ({ onClick: () => { props.onSelect(item.seconds) - props.onHidden() }, title: item.text, value: item.seconds,