From ee6789ed15d76daac9aa18271ffec6515bf3b34b Mon Sep 17 00:00:00 2001
From: Michael Telatynski <7t3chguy@gmail.com>
Date: Tue, 30 May 2017 11:22:27 +0100
Subject: [PATCH] change aux order so room settings is top most, forwarding
could go weird if you clicked roomsettings whilst forwarding
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
---
src/components/structures/RoomView.js | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/components/structures/RoomView.js b/src/components/structures/RoomView.js
index 817fe42e94..77ea8d945a 100644
--- a/src/components/structures/RoomView.js
+++ b/src/components/structures/RoomView.js
@@ -1622,12 +1622,12 @@ module.exports = React.createClass({
let aux = null;
let hideCancel = false;
- if (this.state.forwardingEvent !== null) {
- aux = ;
- } else if (this.state.editingRoomSettings) {
+ if (this.state.editingRoomSettings) {
aux = ;
} else if (this.state.uploadingRoomSettings) {
aux = ;
+ } else if (this.state.forwardingEvent !== null) {
+ aux = ;
} else if (this.state.searching) {
hideCancel = true; // has own cancel
aux = ;