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

Merge pull request #935 from matrix-org/travis/v4-rooms

Add v4 as a safe room version
This commit is contained in:
Travis Ralston
2019-06-03 07:11:13 -06:00
committed by GitHub

View File

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