selecting conversations
This commit is contained in:
@@ -171,6 +171,12 @@ function OverlayConversation({
|
|||||||
masterConversation: MasterConversation;
|
masterConversation: MasterConversation;
|
||||||
isSelected?: boolean;
|
isSelected?: boolean;
|
||||||
}) {
|
}) {
|
||||||
|
const { selectConversation } = useConversations();
|
||||||
|
|
||||||
|
const handleSelectConversation = useCallback(() => {
|
||||||
|
selectConversation(masterConversation._id.toString(), false);
|
||||||
|
}, [masterConversation, selectConversation]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Stack
|
<Stack
|
||||||
direction={'column'}
|
direction={'column'}
|
||||||
@@ -188,6 +194,7 @@ function OverlayConversation({
|
|||||||
bgcolor: blueGrey[300],
|
bgcolor: blueGrey[300],
|
||||||
},
|
},
|
||||||
}}
|
}}
|
||||||
|
onClick={handleSelectConversation}
|
||||||
alignItems={'center'}
|
alignItems={'center'}
|
||||||
>
|
>
|
||||||
{/* status */}
|
{/* status */}
|
||||||
|
|||||||
Reference in New Issue
Block a user