Fix chat permissions handling
This commit is contained in:
parent
61e3e366e6
commit
00deaa79fd
14 changed files with 18 additions and 18 deletions
|
@ -63,7 +63,7 @@ Page {
|
|||
)
|
||||
property var selectedMessages: []
|
||||
readonly property bool isSelecting: selectedMessages.length > 0
|
||||
readonly property bool canSendMessages: hasSendPrivilege("can_send_messages")
|
||||
readonly property bool canSendMessages: hasSendPrivilege("can_send_basic_messages")
|
||||
property bool doSendBotStartMessage
|
||||
property string sendBotStartMessageParameter
|
||||
property var availableReactions
|
||||
|
@ -1599,7 +1599,7 @@ Page {
|
|||
|
||||
IconButton {
|
||||
id: attachImageIconButton
|
||||
visible: chatPage.hasSendPrivilege("can_send_media_messages")
|
||||
visible: chatPage.hasSendPrivilege("can_send_photos")
|
||||
icon.source: "image://theme/icon-m-image"
|
||||
onClicked: {
|
||||
var picker = pageStack.push("Sailfish.Pickers.ImagePickerPage", {
|
||||
|
@ -1615,7 +1615,7 @@ Page {
|
|||
}
|
||||
}
|
||||
IconButton {
|
||||
visible: chatPage.hasSendPrivilege("can_send_media_messages")
|
||||
visible: chatPage.hasSendPrivilege("can_send_videos")
|
||||
icon.source: "image://theme/icon-m-video"
|
||||
onClicked: {
|
||||
var picker = pageStack.push("Sailfish.Pickers.VideoPickerPage", {
|
||||
|
@ -1631,7 +1631,7 @@ Page {
|
|||
}
|
||||
}
|
||||
IconButton {
|
||||
visible: chatPage.hasSendPrivilege("can_send_media_messages")
|
||||
visible: chatPage.hasSendPrivilege("can_send_voice_notes")
|
||||
icon.source: "image://theme/icon-m-mic"
|
||||
icon.sourceSize {
|
||||
width: Theme.iconSizeMedium
|
||||
|
@ -1644,7 +1644,7 @@ Page {
|
|||
}
|
||||
}
|
||||
IconButton {
|
||||
visible: chatPage.hasSendPrivilege("can_send_media_messages")
|
||||
visible: chatPage.hasSendPrivilege("can_send_documents")
|
||||
icon.source: "image://theme/icon-m-document"
|
||||
onClicked: {
|
||||
var picker = pageStack.push("Sailfish.Pickers.FilePickerPage", {
|
||||
|
|
|
@ -1599,7 +1599,7 @@
|
|||
<translation>Unterhaltungen mit ungelesenen Nachrichten hervorheben</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Hide content in Notifications</source>
|
||||
<source>Hide content in notifications</source>
|
||||
<translation>Inhalte in Hinweisen verbergen</translation>
|
||||
</message>
|
||||
</context>
|
||||
|
|
|
@ -1601,7 +1601,7 @@ messages</numerusform>
|
|||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Hide content in Notifications</source>
|
||||
<source>Hide content in notifications</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
|
|
|
@ -1599,7 +1599,7 @@
|
|||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Hide content in Notifications</source>
|
||||
<source>Hide content in notifications</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
|
|
|
@ -1600,7 +1600,7 @@
|
|||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Hide content in Notifications</source>
|
||||
<source>Hide content in notifications</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
|
|
|
@ -1599,7 +1599,7 @@
|
|||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Hide content in Notifications</source>
|
||||
<source>Hide content in notifications</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
|
|
|
@ -1572,7 +1572,7 @@
|
|||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Hide content in Notifications</source>
|
||||
<source>Hide content in notifications</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
|
|
|
@ -1599,7 +1599,7 @@
|
|||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Hide content in Notifications</source>
|
||||
<source>Hide content in notifications</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
|
|
|
@ -1626,7 +1626,7 @@
|
|||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Hide content in Notifications</source>
|
||||
<source>Hide content in notifications</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
|
|
|
@ -1629,7 +1629,7 @@
|
|||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Hide content in Notifications</source>
|
||||
<source>Hide content in notifications</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
|
|
|
@ -1626,7 +1626,7 @@
|
|||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Hide content in Notifications</source>
|
||||
<source>Hide content in notifications</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
|
|
|
@ -1599,7 +1599,7 @@
|
|||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Hide content in Notifications</source>
|
||||
<source>Hide content in notifications</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
|
|
|
@ -1573,7 +1573,7 @@
|
|||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Hide content in Notifications</source>
|
||||
<source>Hide content in notifications</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
|
|
|
@ -1599,7 +1599,7 @@
|
|||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Hide content in Notifications</source>
|
||||
<source>Hide content in notifications</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
|
|
Loading…
Reference in a new issue