matrix-js-sdk

    Function shouldUseHydraForRoomVersion

    • Checks if the given room version is one where new "hydra" power level semantics (ie. room version 12 or later) should be used (see https://github.com/matrix-org/matrix-spec-proposals/pull/4289). This will return false for versions that are known to the js-sdk and do not use hydra: any room versions unknown to the js-sdk (experimental or otherwise) will cause the function to return true.

      Parameters

      • roomVersion: string

        The version of the room to check.

      Returns boolean

      true if hydra semantics should be used for the room version, false otherwise.

    MMNEPVFCICPMFPCPTTAAATR