From 3aa8bfa6cabf2bbda02e53f7f500b1907bc13825 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Mon, 8 Apr 2019 12:24:37 -0600 Subject: [PATCH 1/2] Flag v3 rooms as safe The spec says they are, so we might as well too. --- src/models/room.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/models/room.js b/src/models/room.js index faf86572659..623f0966852 100644 --- a/src/models/room.js +++ b/src/models/room.js @@ -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()); From 13d3be637b6c5cd40c507670dea529ce4115d770 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Tue, 9 Apr 2019 09:58:33 -0600 Subject: [PATCH 2/2] Copyright 2019 NV --- src/models/room.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/models/room.js b/src/models/room.js index 623f0966852..84bcfd0ff0b 100644 --- a/src/models/room.js +++ b/src/models/room.js @@ -1,6 +1,6 @@ /* Copyright 2015, 2016 OpenMarket Ltd -Copyright 2018 New Vector Ltd +Copyright 2018, 2019 New Vector Ltd Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.