1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-12-05 17:02:07 +03:00

Flag v3 rooms as safe

The spec says they are, so we might as well too.
This commit is contained in:
Travis Ralston
2019-04-08 12:24:37 -06:00
parent 17b356b08e
commit 3aa8bfa6ca

View File

@@ -38,7 +38,7 @@ import ReEmitter from '../ReEmitter';
// to upgrade (ie: "stable"). Eventually, we should remove these when all homeservers
// return an m.room_versions capability.
const KNOWN_SAFE_ROOM_VERSION = '1';
const SAFE_ROOM_VERSIONS = ['1', '2'];
const SAFE_ROOM_VERSIONS = ['1', '2', '3'];
function synthesizeReceipt(userId, event, receiptType) {
// console.log("synthesizing receipt for "+event.getId());