diff --git a/src/gui/Pages/AddChat/CreateRoom.qml b/src/gui/Pages/AddChat/CreateRoom.qml index 13e8bba9..c2b464d0 100644 --- a/src/gui/Pages/AddChat/CreateRoom.qml +++ b/src/gui/Pages/AddChat/CreateRoom.qml @@ -8,7 +8,7 @@ import "../../Base/ButtonLayout" HFlickableColumnPage { id: page - enabled: account.presence !== "offline" + enabled: account && account.presence !== "offline" property string userId diff --git a/src/gui/Pages/AddChat/DirectChat.qml b/src/gui/Pages/AddChat/DirectChat.qml index 047149b7..06bb70a1 100644 --- a/src/gui/Pages/AddChat/DirectChat.qml +++ b/src/gui/Pages/AddChat/DirectChat.qml @@ -8,7 +8,7 @@ import "../../Base/ButtonLayout" HFlickableColumnPage { id: page - enabled: account.presence !== "offline" + enabled: account && account.presence !== "offline" property string userId diff --git a/src/gui/Pages/AddChat/JoinRoom.qml b/src/gui/Pages/AddChat/JoinRoom.qml index b21b22fd..40b722d1 100644 --- a/src/gui/Pages/AddChat/JoinRoom.qml +++ b/src/gui/Pages/AddChat/JoinRoom.qml @@ -8,7 +8,7 @@ import "../../Base/ButtonLayout" HFlickableColumnPage { id: page - enabled: account.presence !== "offline" + enabled: account && account.presence !== "offline" property string userId