Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
String -> string
Browse files Browse the repository at this point in the history
Signed-off-by: Timo K <toger5@hotmail.de>
  • Loading branch information
toger5 committed Nov 21, 2023
1 parent ba62fc5 commit 478da26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/toasts/IncomingCallToast.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export function IncomingCallToast({ notifyEvent }: Props): JSX.Element {

// Start ringing if not already.
useEffect(() => {
const isRingToast = (notifyEvent.getContent() as unknown as { notify_type: String })["notify_type"] == "ring";
const isRingToast = (notifyEvent.getContent() as unknown as { notify_type: string })["notify_type"] == "ring";
if (isRingToast && audio.paused) {
audio.play();
}
Expand All @@ -94,7 +94,7 @@ export function IncomingCallToast({ notifyEvent }: Props): JSX.Element {

// Dismiss if session got ended remotely.
const onSessionEnded = useCallback(
(endedSessionRoomId: String, session: MatrixRTCSession): void => {
(endedSessionRoomId: string, session: MatrixRTCSession): void => {
if (roomId == endedSessionRoomId && session.callId == notifyEvent.getContent().call_id) {
dismissToast();
}
Expand Down

0 comments on commit 478da26

Please sign in to comment.