From 00deaa79fd3992118745abbda2560f1edf7c1ec0 Mon Sep 17 00:00:00 2001 From: Sebastian Wolf Date: Sun, 19 Nov 2023 13:34:31 +0100 Subject: [PATCH] Fix chat permissions handling --- qml/pages/ChatPage.qml | 10 +++++----- translations/harbour-fernschreiber-de.ts | 2 +- translations/harbour-fernschreiber-en.ts | 2 +- translations/harbour-fernschreiber-es.ts | 2 +- translations/harbour-fernschreiber-fi.ts | 2 +- translations/harbour-fernschreiber-fr.ts | 2 +- translations/harbour-fernschreiber-hu.ts | 2 +- translations/harbour-fernschreiber-it.ts | 2 +- translations/harbour-fernschreiber-pl.ts | 2 +- translations/harbour-fernschreiber-ru.ts | 2 +- translations/harbour-fernschreiber-sk.ts | 2 +- translations/harbour-fernschreiber-sv.ts | 2 +- translations/harbour-fernschreiber-zh_CN.ts | 2 +- translations/harbour-fernschreiber.ts | 2 +- 14 files changed, 18 insertions(+), 18 deletions(-) diff --git a/qml/pages/ChatPage.qml b/qml/pages/ChatPage.qml index b816fe3..c98c263 100644 --- a/qml/pages/ChatPage.qml +++ b/qml/pages/ChatPage.qml @@ -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", { diff --git a/translations/harbour-fernschreiber-de.ts b/translations/harbour-fernschreiber-de.ts index 7908487..541ad0d 100644 --- a/translations/harbour-fernschreiber-de.ts +++ b/translations/harbour-fernschreiber-de.ts @@ -1599,7 +1599,7 @@ Unterhaltungen mit ungelesenen Nachrichten hervorheben - Hide content in Notifications + Hide content in notifications Inhalte in Hinweisen verbergen diff --git a/translations/harbour-fernschreiber-en.ts b/translations/harbour-fernschreiber-en.ts index 5bedf63..4b03af9 100644 --- a/translations/harbour-fernschreiber-en.ts +++ b/translations/harbour-fernschreiber-en.ts @@ -1601,7 +1601,7 @@ messages - Hide content in Notifications + Hide content in notifications diff --git a/translations/harbour-fernschreiber-es.ts b/translations/harbour-fernschreiber-es.ts index 7e8c543..8fb1434 100644 --- a/translations/harbour-fernschreiber-es.ts +++ b/translations/harbour-fernschreiber-es.ts @@ -1599,7 +1599,7 @@ - Hide content in Notifications + Hide content in notifications diff --git a/translations/harbour-fernschreiber-fi.ts b/translations/harbour-fernschreiber-fi.ts index 30fb57a..ff316bd 100644 --- a/translations/harbour-fernschreiber-fi.ts +++ b/translations/harbour-fernschreiber-fi.ts @@ -1600,7 +1600,7 @@ - Hide content in Notifications + Hide content in notifications diff --git a/translations/harbour-fernschreiber-fr.ts b/translations/harbour-fernschreiber-fr.ts index 6619abf..c9a5297 100644 --- a/translations/harbour-fernschreiber-fr.ts +++ b/translations/harbour-fernschreiber-fr.ts @@ -1599,7 +1599,7 @@ - Hide content in Notifications + Hide content in notifications diff --git a/translations/harbour-fernschreiber-hu.ts b/translations/harbour-fernschreiber-hu.ts index a1b9709..021c976 100644 --- a/translations/harbour-fernschreiber-hu.ts +++ b/translations/harbour-fernschreiber-hu.ts @@ -1572,7 +1572,7 @@ - Hide content in Notifications + Hide content in notifications diff --git a/translations/harbour-fernschreiber-it.ts b/translations/harbour-fernschreiber-it.ts index f279676..34ae96f 100644 --- a/translations/harbour-fernschreiber-it.ts +++ b/translations/harbour-fernschreiber-it.ts @@ -1599,7 +1599,7 @@ - Hide content in Notifications + Hide content in notifications diff --git a/translations/harbour-fernschreiber-pl.ts b/translations/harbour-fernschreiber-pl.ts index 0b77527..b213f81 100644 --- a/translations/harbour-fernschreiber-pl.ts +++ b/translations/harbour-fernschreiber-pl.ts @@ -1626,7 +1626,7 @@ - Hide content in Notifications + Hide content in notifications diff --git a/translations/harbour-fernschreiber-ru.ts b/translations/harbour-fernschreiber-ru.ts index b2dcc9a..d1a5e7a 100644 --- a/translations/harbour-fernschreiber-ru.ts +++ b/translations/harbour-fernschreiber-ru.ts @@ -1629,7 +1629,7 @@ - Hide content in Notifications + Hide content in notifications diff --git a/translations/harbour-fernschreiber-sk.ts b/translations/harbour-fernschreiber-sk.ts index ccf207e..1ef59c9 100644 --- a/translations/harbour-fernschreiber-sk.ts +++ b/translations/harbour-fernschreiber-sk.ts @@ -1626,7 +1626,7 @@ - Hide content in Notifications + Hide content in notifications diff --git a/translations/harbour-fernschreiber-sv.ts b/translations/harbour-fernschreiber-sv.ts index a7ae697..48235f3 100644 --- a/translations/harbour-fernschreiber-sv.ts +++ b/translations/harbour-fernschreiber-sv.ts @@ -1599,7 +1599,7 @@ - Hide content in Notifications + Hide content in notifications diff --git a/translations/harbour-fernschreiber-zh_CN.ts b/translations/harbour-fernschreiber-zh_CN.ts index 0e012db..c3b526f 100644 --- a/translations/harbour-fernschreiber-zh_CN.ts +++ b/translations/harbour-fernschreiber-zh_CN.ts @@ -1573,7 +1573,7 @@ - Hide content in Notifications + Hide content in notifications diff --git a/translations/harbour-fernschreiber.ts b/translations/harbour-fernschreiber.ts index b137d4a..ba39133 100644 --- a/translations/harbour-fernschreiber.ts +++ b/translations/harbour-fernschreiber.ts @@ -1599,7 +1599,7 @@ - Hide content in Notifications + Hide content in notifications