From 3b1ed3a0140a115ba3549b6860701d91d4164870 Mon Sep 17 00:00:00 2001 From: Richard van der Hoff Date: Tue, 2 Feb 2016 17:59:11 +0000 Subject: [PATCH] Fix react warnings when a RR animation is happening during room switch If the animation of an RR removal is active when we change room, we end up getting a callback after the RoomView has been unmounted. Guard against this to avoid getting React warnings. --- src/components/structures/RoomView.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/structures/RoomView.js b/src/components/structures/RoomView.js index e2ed8231ef..37866ca646 100644 --- a/src/components/structures/RoomView.js +++ b/src/components/structures/RoomView.js @@ -915,7 +915,7 @@ module.exports = React.createClass({ var hr; hr = (
); ret.splice(ghostIndex, 0, (