1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-23 17:02:25 +03:00

fixup more bits

This commit is contained in:
Half-Shot
2025-10-03 13:54:38 +01:00
parent 4d13031416
commit af8c329ebe
2 changed files with 2 additions and 4 deletions

View File

@@ -170,9 +170,7 @@ export function mockRTCEvent(
timestamp,
!stickyDuration && "device_id" in membershipData ? `_${sender}_${membershipData.device_id}` : "",
),
unstableStickyContent: {
duration_ms: stickyDuration,
},
unstableStickyExpiresAt:stickyDuration,
} as unknown as MatrixEvent;
}

View File

@@ -116,7 +116,7 @@ export class MatrixRTCSessionManager extends TypedEventEmitter<MatrixRTCSessionM
};
private onEvent = (event: MatrixEvent): void => {
if (!event.unstableStickyContent?.duration_ms) {
if (!event.unstableStickyExpiresAt) {
return; // Not sticky, not interested.
}
if (event.getType() !== EventType.GroupCallMemberPrefix) {