Disable inviting members while offline
This commit is contained in:
parent
291168ccdb
commit
e5b67c722e
1
TODO.md
1
TODO.md
|
@ -1,5 +1,6 @@
|
||||||
# TODO
|
# TODO
|
||||||
|
|
||||||
|
- presence keybinds
|
||||||
- retry if media not found
|
- retry if media not found
|
||||||
- fix members not synced bug
|
- fix members not synced bug
|
||||||
- fix local unread counters order
|
- fix local unread counters order
|
||||||
|
|
|
@ -120,7 +120,9 @@ HColumnLayout {
|
||||||
icon.name: "room-send-invite"
|
icon.name: "room-send-invite"
|
||||||
backgroundColor:
|
backgroundColor:
|
||||||
theme.chat.roomPane.bottomBar.inviteButton.background
|
theme.chat.roomPane.bottomBar.inviteButton.background
|
||||||
enabled: chat.roomInfo.can_invite
|
enabled:
|
||||||
|
chat.userInfo.presence !== "offline" &&
|
||||||
|
chat.roomInfo.can_invite
|
||||||
|
|
||||||
toolTip.text:
|
toolTip.text:
|
||||||
enabled ?
|
enabled ?
|
||||||
|
@ -142,7 +144,8 @@ HColumnLayout {
|
||||||
|
|
||||||
HShortcut {
|
HShortcut {
|
||||||
sequences: window.settings.keys.inviteToRoom
|
sequences: window.settings.keys.inviteToRoom
|
||||||
onActivated: inviteButton.clicked()
|
onActivated:
|
||||||
|
if (inviteButton.enabled) inviteButton.clicked()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user