Update Terminal.tsx
This commit is contained in:
@@ -712,6 +712,13 @@ function ConversationDetails() {
|
|||||||
|
|
||||||
const [conversationUsers, setConversationUsers] = useImmer<User[]>([]);
|
const [conversationUsers, setConversationUsers] = useImmer<User[]>([]);
|
||||||
|
|
||||||
|
// join the room
|
||||||
|
useEffect(() => {
|
||||||
|
if (selectedConversation.membersInRoom?.length > 0) {
|
||||||
|
// join the audio room
|
||||||
|
}
|
||||||
|
}, [selectedConversation.membersInRoom]);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
(async () => {
|
(async () => {
|
||||||
const userPromises = selectedConversation.memberIdsList
|
const userPromises = selectedConversation.memberIdsList
|
||||||
@@ -759,7 +766,7 @@ function ConversationDetails() {
|
|||||||
sx={{
|
sx={{
|
||||||
width: 30,
|
width: 30,
|
||||||
height: 30,
|
height: 30,
|
||||||
opacity: selectedConversation.membersInRoom.includes(conversationUser.uid)
|
opacity: selectedConversation.membersInRoom?.includes(conversationUser.uid)
|
||||||
? '100%'
|
? '100%'
|
||||||
: '20%',
|
: '20%',
|
||||||
}}
|
}}
|
||||||
|
|||||||
Reference in New Issue
Block a user