From 70351fb16f40aec484ec1fef93f69632e54999e0 Mon Sep 17 00:00:00 2001 From: miruka Date: Fri, 10 Jul 2020 13:07:15 -0400 Subject: [PATCH] Disable AddChat pages content while offline --- src/gui/Pages/AddChat/CreateRoom.qml | 1 + src/gui/Pages/AddChat/DirectChat.qml | 1 + src/gui/Pages/AddChat/JoinRoom.qml | 1 + 3 files changed, 3 insertions(+) diff --git a/src/gui/Pages/AddChat/CreateRoom.qml b/src/gui/Pages/AddChat/CreateRoom.qml index e5f4b52c..13e8bba9 100644 --- a/src/gui/Pages/AddChat/CreateRoom.qml +++ b/src/gui/Pages/AddChat/CreateRoom.qml @@ -8,6 +8,7 @@ import "../../Base/ButtonLayout" HFlickableColumnPage { id: page + enabled: account.presence !== "offline" property string userId diff --git a/src/gui/Pages/AddChat/DirectChat.qml b/src/gui/Pages/AddChat/DirectChat.qml index eefc1980..047149b7 100644 --- a/src/gui/Pages/AddChat/DirectChat.qml +++ b/src/gui/Pages/AddChat/DirectChat.qml @@ -8,6 +8,7 @@ import "../../Base/ButtonLayout" HFlickableColumnPage { id: page + enabled: account.presence !== "offline" property string userId diff --git a/src/gui/Pages/AddChat/JoinRoom.qml b/src/gui/Pages/AddChat/JoinRoom.qml index 9cab4933..b21b22fd 100644 --- a/src/gui/Pages/AddChat/JoinRoom.qml +++ b/src/gui/Pages/AddChat/JoinRoom.qml @@ -8,6 +8,7 @@ import "../../Base/ButtonLayout" HFlickableColumnPage { id: page + enabled: account.presence !== "offline" property string userId