Fix Chat userInfo errors
This commit is contained in:
parent
63b80168a6
commit
10f47f71ac
|
@ -35,7 +35,7 @@ Item {
|
||||||
|
|
||||||
HShortcut {
|
HShortcut {
|
||||||
sequences: window.settings.keys.leaveRoom
|
sequences: window.settings.keys.leaveRoom
|
||||||
active: userInfo.presence !== "offline"
|
active: userInfo && userInfo.presence !== "offline"
|
||||||
onActivated: utils.makePopup(
|
onActivated: utils.makePopup(
|
||||||
"Popups/LeaveRoomPopup.qml",
|
"Popups/LeaveRoomPopup.qml",
|
||||||
{userId, roomId, roomName: roomInfo.display_name},
|
{userId, roomId, roomName: roomInfo.display_name},
|
||||||
|
@ -44,7 +44,7 @@ Item {
|
||||||
|
|
||||||
HShortcut {
|
HShortcut {
|
||||||
sequences: window.settings.keys.forgetRoom
|
sequences: window.settings.keys.forgetRoom
|
||||||
active: userInfo.presence !== "offline"
|
active: userInfo && userInfo.presence !== "offline"
|
||||||
onActivated: utils.makePopup(
|
onActivated: utils.makePopup(
|
||||||
"Popups/ForgetRoomPopup.qml",
|
"Popups/ForgetRoomPopup.qml",
|
||||||
{userId, roomId, roomName: roomInfo.display_name},
|
{userId, roomId, roomName: roomInfo.display_name},
|
||||||
|
|
Loading…
Reference in New Issue
Block a user