Skip to content

Commit

Permalink
Mark room versions 7, 8, and 9 as safe (#2318)
Browse files Browse the repository at this point in the history
* Mark room versions 7, 8, and 9 as safe

Workaround for element-hq/element-web#20166 element-hq/element-web#11820

* Update KNOWN_SAFE_ROOM_VERSION to room version 9
  • Loading branch information
aaronraimist committed May 2, 2022
1 parent 2ebf335 commit 6137afe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/models/room.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ import { IStateEventWithRoomId } from "../@types/search";
// room versions which are considered okay for people to run without being asked
// to upgrade (ie: "stable"). Eventually, we should remove these when all homeservers
// return an m.room_versions capability.
const KNOWN_SAFE_ROOM_VERSION = '6';
const SAFE_ROOM_VERSIONS = ['1', '2', '3', '4', '5', '6'];
const KNOWN_SAFE_ROOM_VERSION = '9';
const SAFE_ROOM_VERSIONS = ['1', '2', '3', '4', '5', '6', '7', '8', '9'];

function synthesizeReceipt(userId: string, event: MatrixEvent, receiptType: string): MatrixEvent {
// console.log("synthesizing receipt for "+event.getId());
Expand Down

0 comments on commit 6137afe

Please sign in to comment.