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
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:
@@ -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());
|
||||||
|
|||||||
Reference in New Issue
Block a user