Skip to content

Commit 6137afe

Browse files
authored
Mark room versions 7, 8, and 9 as safe (#2318)
* 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
1 parent 2ebf335 commit 6137afe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/models/room.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ import { IStateEventWithRoomId } from "../@types/search";
5555
// room versions which are considered okay for people to run without being asked
5656
// to upgrade (ie: "stable"). Eventually, we should remove these when all homeservers
5757
// return an m.room_versions capability.
58-
const KNOWN_SAFE_ROOM_VERSION = '6';
59-
const SAFE_ROOM_VERSIONS = ['1', '2', '3', '4', '5', '6'];
58+
const KNOWN_SAFE_ROOM_VERSION = '9';
59+
const SAFE_ROOM_VERSIONS = ['1', '2', '3', '4', '5', '6', '7', '8', '9'];
6060

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

0 commit comments

Comments
 (0)