Remove unnecessary casts
This commit is contained in:
@@ -435,14 +435,7 @@ export class CallViewModel extends ViewModel {
|
|||||||
MembershipManagerEvent.StatusChanged,
|
MembershipManagerEvent.StatusChanged,
|
||||||
).pipe(
|
).pipe(
|
||||||
startWith(null),
|
startWith(null),
|
||||||
map(
|
map(() => this.matrixRTCSession.membershipStatus === Status.Connected),
|
||||||
() =>
|
|
||||||
(
|
|
||||||
this.matrixRTCSession as unknown as {
|
|
||||||
membershipStatus?: Status;
|
|
||||||
}
|
|
||||||
).membershipStatus === Status.Connected,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
// Also watch out for warnings that we've likely hit a timeout and our
|
// Also watch out for warnings that we've likely hit a timeout and our
|
||||||
// delayed leave event is being sent (this condition is here because it
|
// delayed leave event is being sent (this condition is here because it
|
||||||
@@ -453,11 +446,7 @@ export class CallViewModel extends ViewModel {
|
|||||||
MembershipManagerEvent.ProbablyLeft,
|
MembershipManagerEvent.ProbablyLeft,
|
||||||
).pipe(
|
).pipe(
|
||||||
startWith(null),
|
startWith(null),
|
||||||
map(
|
map(() => this.matrixRTCSession.probablyLeft !== true),
|
||||||
() =>
|
|
||||||
(this.matrixRTCSession as unknown as { probablyLeft?: boolean })
|
|
||||||
.probablyLeft !== true,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user