Skip to content

Commit

Permalink
fixup! remove all legacy call related code and adjust tests. We actua…
Browse files Browse the repository at this point in the history
…lly had a bit of tests just for legacy and not for session events. All those tests got ported over so we do not remove any tests.
  • Loading branch information
toger5 committed Dec 12, 2024
1 parent 4fe365b commit b900f7a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/matrixrtc/CallMembership.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,9 @@ export class CallMembership {
data: any,
) {
const sessionErrors: string[] = [];
const legacyErrors: string[] = [];
if (!checkSessionsMembershipData(data, sessionErrors)) {
throw Error(
`unknown CallMembership data. Does not match MSC4143 call.member (${legacyErrors.join(" & ")}) events this could be a legacy membership event: (${data})`,
`unknown CallMembership data. Does not match MSC4143 call.member (${sessionErrors.join(" & ")}) events this could be a legacy membership event: (${data})`,
);
} else {
this.membershipData = data;
Expand Down

0 comments on commit b900f7a

Please sign in to comment.