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

Commit

Permalink
Code review changes
Browse files Browse the repository at this point in the history
Signed-off-by: Mikhail Aheichyk <[email protected]>
  • Loading branch information
Mikhail Aheichyk committed Sep 19, 2023
1 parent 54c6935 commit a377e7c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion src/utils/membership.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ export function getEffectiveMembership(membership: string): EffectiveMembership
if (membership === "invite") {
return EffectiveMembership.Invite;
} else if (membership === "join" || (SettingsStore.getValue("feature_ask_to_join") && membership === "knock")) {
// TODO: Include knocks? Update docs as needed in the enum. https://github.com/vector-im/element-web/issues/14237
return EffectiveMembership.Join;
} else {
// Probably a leave, kick, or ban
Expand Down
3 changes: 1 addition & 2 deletions test/utils/membership-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ import { isKnockDenied, waitForMember } from "../../src/utils/membership";
import { createTestClient, mkRoomMember, stubClient } from "../test-utils";

describe("isKnockDenied", () => {
// const userId = MatrixClientPeg.get()!.getSafeUserId() //TODO: MA
const userId = "some";
const userId = "alice";
let client: jest.Mocked<MatrixClient>;
let room: Room;

Expand Down

0 comments on commit a377e7c

Please sign in to comment.