feat: implement CORS proxy for Matrix homeservers during development and refactor call handling logic
This commit is contained in:
@@ -450,12 +450,7 @@ function RoomCallButtons({ roomId }: RoomCallButtonsProps) {
|
||||
{isConnecting ? (
|
||||
<Spinner size="100" variant="Secondary" />
|
||||
) : (
|
||||
<Box direction="Row" gap="100" alignItems="Center">
|
||||
<Icon size="400" src={Icons.Phone} filled={isActive && activeCall?.callType === CallType.Voice} />
|
||||
{isUsingRemoteHomeserver && (
|
||||
<Icon size="50" src={Icons.HashGlobe} style={{ opacity: 0.7 }} />
|
||||
)}
|
||||
</Box>
|
||||
<Icon size="400" src={Icons.Phone} filled={isActive && activeCall?.callType === CallType.Voice} />
|
||||
)}
|
||||
</IconButton>
|
||||
)}
|
||||
@@ -481,12 +476,7 @@ function RoomCallButtons({ roomId }: RoomCallButtonsProps) {
|
||||
{isConnecting ? (
|
||||
<Spinner size="100" variant="Secondary" />
|
||||
) : (
|
||||
<Box direction="Row" gap="100" alignItems="Center">
|
||||
<Icon size="400" src={Icons.VideoCamera} filled={isActive && activeCall?.callType === CallType.Video} />
|
||||
{isUsingRemoteHomeserver && (
|
||||
<Icon size="50" src={Icons.HashGlobe} style={{ opacity: 0.7 }} />
|
||||
)}
|
||||
</Box>
|
||||
<Icon size="400" src={Icons.VideoCamera} filled={isActive && activeCall?.callType === CallType.Video} />
|
||||
)}
|
||||
</IconButton>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user