From 10f47f71aca00c8872ee9a447358bd51e6ffeff9 Mon Sep 17 00:00:00 2001 From: miruka Date: Sat, 11 Jul 2020 00:43:31 -0400 Subject: [PATCH] Fix Chat userInfo errors --- src/gui/Pages/Chat/Chat.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/Pages/Chat/Chat.qml b/src/gui/Pages/Chat/Chat.qml index 3e0bf0a8..6b935216 100644 --- a/src/gui/Pages/Chat/Chat.qml +++ b/src/gui/Pages/Chat/Chat.qml @@ -35,7 +35,7 @@ Item { HShortcut { sequences: window.settings.keys.leaveRoom - active: userInfo.presence !== "offline" + active: userInfo && userInfo.presence !== "offline" onActivated: utils.makePopup( "Popups/LeaveRoomPopup.qml", {userId, roomId, roomName: roomInfo.display_name}, @@ -44,7 +44,7 @@ Item { HShortcut { sequences: window.settings.keys.forgetRoom - active: userInfo.presence !== "offline" + active: userInfo && userInfo.presence !== "offline" onActivated: utils.makePopup( "Popups/ForgetRoomPopup.qml", {userId, roomId, roomName: roomInfo.display_name},