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

Add v4 as a safe room version

It's listed as stable in the spec, and this is for our fallback.
This commit is contained in:
Travis Ralston
2019-06-02 23:36:02 -06:00
parent 0cbbbe8503
commit a532cc5cf9

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());