Skip to content

Commit 86633cc

Browse files
remove showOnMount
1 parent ce89fc4 commit 86633cc

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/ui/Popup.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ type PopupProps = UIBoxProps<Talk.Popup> &
1111
highlightedWords?: Parameters<Talk.Popup["setHighlightedWords"]>[0];
1212
popupRef?: React.MutableRefObject<Talk.Popup | undefined>;
1313
show?: boolean;
14-
showOnMount?: boolean;
1514
};
1615

1716
export function Popup(props: PopupProps) {
@@ -31,7 +30,6 @@ function ActivePopup(props: PopupProps & { session: Talk.Session }) {
3130
syncConversation,
3231
asGuest,
3332
show,
34-
showOnMount,
3533
popupRef,
3634
...optionsAndEvents
3735
} = props;
@@ -45,7 +43,7 @@ function ActivePopup(props: PopupProps & { session: Talk.Session }) {
4543
useMethod(box, presence, "setPresence");
4644
useMethod(box, highlightedWords, "setHighlightedWords");
4745
useConversation(session, box, syncConversation, conversationId, asGuest);
48-
const mounted = useMountBox(box, {show: show ?? showOnMount ?? true});
46+
const mounted = useMountBox(box, {show: show ?? true});
4947

5048
useEffect(() => {
5149
if(show === undefined || !mounted) {

0 commit comments

Comments
 (0)