From 0bef94a6ce6e676e799614e20f1965d65abfe162 Mon Sep 17 00:00:00 2001 From: Matthew Hodgson Date: Fri, 22 Jan 2016 15:51:27 +0000 Subject: [PATCH] fudge around https://github.com/vector-im/vector-web/issues/731 --- src/components/structures/RoomView.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/components/structures/RoomView.js b/src/components/structures/RoomView.js index 1fc30a8eec..a8f364d082 100644 --- a/src/components/structures/RoomView.js +++ b/src/components/structures/RoomView.js @@ -980,6 +980,13 @@ module.exports = React.createClass({ ); } + // XXX: EVIL HACK: for now, don't let Vector clobber 'invite' visibility to 'join' + // just because it doesn't know about 'invite' yet. In future we should fix it + // properly - https://github.com/vector-im/vector-web/issues/731 + if (old_history_visibility === "invited") { + old_history_visibility = "joined"; + } + var visibilityDeferred; if (old_history_visibility != newVals.history_visibility && newVals.history_visibility != undefined) {