You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-12-05 17:02:07 +03:00
Change the known safe room version to version 4
The default room version in the spec is v4 due to widespread adoption. We should mirror that.
This commit is contained in:
@@ -38,7 +38,7 @@ import ReEmitter from '../ReEmitter';
|
|||||||
// room versions which are considered okay for people to run without being asked
|
// 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
|
// 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 = '4';
|
||||||
const SAFE_ROOM_VERSIONS = ['1', '2', '3', '4'];
|
const SAFE_ROOM_VERSIONS = ['1', '2', '3', '4'];
|
||||||
|
|
||||||
function synthesizeReceipt(userId, event, receiptType) {
|
function synthesizeReceipt(userId, event, receiptType) {
|
||||||
|
|||||||
Reference in New Issue
Block a user