Next steps towards supporting user preferences
This commit is contained in:
parent
2fcacef6d4
commit
9a5db3e83f
19 changed files with 1017 additions and 12 deletions
|
@ -55,7 +55,7 @@ Column {
|
|||
width: parent.width - editAreaButton.width
|
||||
textLeftMargin: 0
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
font.pixelSize: Theme.fontSizeSmall
|
||||
font.pixelSize: Theme.fontSizeMedium
|
||||
}
|
||||
TextField {
|
||||
id: editAreaTextField
|
||||
|
@ -68,7 +68,7 @@ Column {
|
|||
editAreaColumn.saveButtonClicked(editAreaColumn.editItem.text);
|
||||
}
|
||||
EnterKey.iconSource: editAreaButton.icon.source
|
||||
font.pixelSize: Theme.fontSizeSmall
|
||||
font.pixelSize: Theme.fontSizeMedium
|
||||
}
|
||||
InformationTextItem {
|
||||
id: editAreaTextItem
|
||||
|
|
|
@ -48,7 +48,7 @@ Column {
|
|||
id: labelComponent
|
||||
Label {
|
||||
wrapMode: Text.WrapAtWordBoundaryOrAnywhere
|
||||
font.pixelSize: Theme.fontSizeSmall
|
||||
font.pixelSize: Theme.fontSizeMedium
|
||||
textFormat: Text.StyledText
|
||||
color: Theme.primaryColor
|
||||
text: Emoji.emojify( Functions.replaceUrlsWithLinks(textItem.text).replace(/\n/g, "<br>"), Theme.fontSizeExtraSmall)
|
||||
|
|
|
@ -92,6 +92,12 @@ Page {
|
|||
tdLibWrapper.getRecentStickers();
|
||||
tdLibWrapper.getInstalledStickerSets();
|
||||
tdLibWrapper.getContacts();
|
||||
tdLibWrapper.getUserPrivacySettingRules(TelegramAPI.SettingAllowChatInvites);
|
||||
tdLibWrapper.getUserPrivacySettingRules(TelegramAPI.SettingAllowFindingByPhoneNumber);
|
||||
tdLibWrapper.getUserPrivacySettingRules(TelegramAPI.SettingShowLinkInForwardedMessages);
|
||||
tdLibWrapper.getUserPrivacySettingRules(TelegramAPI.SettingShowPhoneNumber);
|
||||
tdLibWrapper.getUserPrivacySettingRules(TelegramAPI.SettingShowProfilePhoto);
|
||||
tdLibWrapper.getUserPrivacySettingRules(TelegramAPI.SettingShowStatus);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -21,6 +21,7 @@ import Sailfish.Silica 1.0
|
|||
import WerkWolf.Fernschreiber 1.0
|
||||
import "../components"
|
||||
import "../js/functions.js" as Functions
|
||||
import "../js/debug.js" as Debug
|
||||
|
||||
Page {
|
||||
id: settingsPage
|
||||
|
@ -138,6 +139,229 @@ Page {
|
|||
|
||||
}
|
||||
|
||||
Grid {
|
||||
width: parent.width
|
||||
columns: landscapeLayout ? 2 : 1
|
||||
columnSpacing: Theme.horizontalPageMargin
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
|
||||
readonly property real columnWidth: width/columns
|
||||
|
||||
Connections {
|
||||
target: tdLibWrapper
|
||||
onUserPrivacySettingUpdated: {
|
||||
Debug.log("Received updated privacy setting: " + setting + ":" + rule);
|
||||
switch (setting) {
|
||||
case TelegramAPI.SettingAllowChatInvites:
|
||||
allowChatInvitesComboBox.currentIndex = rule;
|
||||
break;
|
||||
case TelegramAPI.SettingAllowFindingByPhoneNumber:
|
||||
allowFindingByPhoneNumberComboBox.currentIndex = rule;
|
||||
break;
|
||||
case TelegramAPI.SettingShowLinkInForwardedMessages:
|
||||
showLinkInForwardedMessagesComboBox.currentIndex = rule;
|
||||
break;
|
||||
case TelegramAPI.SettingShowPhoneNumber:
|
||||
showPhoneNumberComboBox.currentIndex = rule;
|
||||
break;
|
||||
case TelegramAPI.SettingShowProfilePhoto:
|
||||
showProfilePhotoComboBox.currentIndex = rule;
|
||||
break;
|
||||
case TelegramAPI.SettingShowStatus:
|
||||
showStatusComboBox.currentIndex = rule;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
ComboBox {
|
||||
id: allowChatInvitesComboBox
|
||||
width: parent.columnWidth
|
||||
label: qsTr("Allow chat invites")
|
||||
description: qsTr("Privacy setting for managing whether you can be invited to chats.")
|
||||
menu: ContextMenu {
|
||||
|
||||
MenuItem {
|
||||
text: qsTr("Yes")
|
||||
onClicked: {
|
||||
tdLibWrapper.setUserPrivacySettingRule(TelegramAPI.SettingAllowChatInvites, TelegramAPI.RuleAllowAll);
|
||||
}
|
||||
}
|
||||
MenuItem {
|
||||
text: qsTr("Your contacts only")
|
||||
onClicked: {
|
||||
tdLibWrapper.setUserPrivacySettingRule(TelegramAPI.SettingAllowChatInvites, TelegramAPI.RuleAllowContacts);
|
||||
}
|
||||
}
|
||||
MenuItem {
|
||||
text: qsTr("No")
|
||||
onClicked: {
|
||||
tdLibWrapper.setUserPrivacySettingRule(TelegramAPI.SettingAllowChatInvites, TelegramAPI.RuleRestrictAll);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Component.onCompleted: {
|
||||
currentIndex = tdLibWrapper.getUserPrivacySettingRule(TelegramAPI.SettingAllowChatInvites);
|
||||
}
|
||||
}
|
||||
|
||||
ComboBox {
|
||||
id: allowFindingByPhoneNumberComboBox
|
||||
width: parent.columnWidth
|
||||
label: qsTr("Allow finding by phone number")
|
||||
description: qsTr("Privacy setting for managing whether you can be found by your phone number.")
|
||||
menu: ContextMenu {
|
||||
|
||||
MenuItem {
|
||||
text: qsTr("Yes")
|
||||
onClicked: {
|
||||
tdLibWrapper.setUserPrivacySettingRule(TelegramAPI.SettingAllowFindingByPhoneNumber, TelegramAPI.RuleAllowAll);
|
||||
}
|
||||
}
|
||||
MenuItem {
|
||||
text: qsTr("Your contacts only")
|
||||
onClicked: {
|
||||
tdLibWrapper.setUserPrivacySettingRule(TelegramAPI.SettingAllowFindingByPhoneNumber, TelegramAPI.RuleAllowContacts);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Component.onCompleted: {
|
||||
currentIndex = tdLibWrapper.getUserPrivacySettingRule(TelegramAPI.SettingAllowFindingByPhoneNumber);
|
||||
}
|
||||
}
|
||||
|
||||
ComboBox {
|
||||
id: showLinkInForwardedMessagesComboBox
|
||||
width: parent.columnWidth
|
||||
label: qsTr("Show link in forwarded messages")
|
||||
description: qsTr("Privacy setting for managing whether a link to your account is included in forwarded messages.")
|
||||
menu: ContextMenu {
|
||||
|
||||
MenuItem {
|
||||
text: qsTr("Yes")
|
||||
onClicked: {
|
||||
tdLibWrapper.setUserPrivacySettingRule(TelegramAPI.SettingShowLinkInForwardedMessages, TelegramAPI.RuleAllowAll);
|
||||
}
|
||||
}
|
||||
MenuItem {
|
||||
text: qsTr("Your contacts only")
|
||||
onClicked: {
|
||||
tdLibWrapper.setUserPrivacySettingRule(TelegramAPI.SettingShowLinkInForwardedMessages, TelegramAPI.RuleAllowContacts);
|
||||
}
|
||||
}
|
||||
MenuItem {
|
||||
text: qsTr("No")
|
||||
onClicked: {
|
||||
tdLibWrapper.setUserPrivacySettingRule(TelegramAPI.SettingShowLinkInForwardedMessages, TelegramAPI.RuleRestrictAll);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Component.onCompleted: {
|
||||
currentIndex = tdLibWrapper.getUserPrivacySettingRule(TelegramAPI.SettingShowLinkInForwardedMessages);
|
||||
}
|
||||
}
|
||||
|
||||
ComboBox {
|
||||
id: showPhoneNumberComboBox
|
||||
width: parent.columnWidth
|
||||
label: qsTr("Show phone number")
|
||||
description: qsTr("Privacy setting for managing whether your phone number is visible.")
|
||||
menu: ContextMenu {
|
||||
|
||||
MenuItem {
|
||||
text: qsTr("Yes")
|
||||
onClicked: {
|
||||
tdLibWrapper.setUserPrivacySettingRule(TelegramAPI.SettingShowPhoneNumber, TelegramAPI.RuleAllowAll);
|
||||
}
|
||||
}
|
||||
MenuItem {
|
||||
text: qsTr("Your contacts only")
|
||||
onClicked: {
|
||||
tdLibWrapper.setUserPrivacySettingRule(TelegramAPI.SettingShowPhoneNumber, TelegramAPI.RuleAllowContacts);
|
||||
}
|
||||
}
|
||||
MenuItem {
|
||||
text: qsTr("No")
|
||||
onClicked: {
|
||||
tdLibWrapper.setUserPrivacySettingRule(TelegramAPI.SettingShowPhoneNumber, TelegramAPI.RuleRestrictAll);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Component.onCompleted: {
|
||||
currentIndex = tdLibWrapper.getUserPrivacySettingRule(TelegramAPI.SettingShowPhoneNumber);
|
||||
}
|
||||
}
|
||||
|
||||
ComboBox {
|
||||
id: showProfilePhotoComboBox
|
||||
width: parent.columnWidth
|
||||
label: qsTr("Show profile photo")
|
||||
description: qsTr("Privacy setting for managing whether your profile photo is visible.")
|
||||
menu: ContextMenu {
|
||||
|
||||
MenuItem {
|
||||
text: qsTr("Yes")
|
||||
onClicked: {
|
||||
tdLibWrapper.setUserPrivacySettingRule(TelegramAPI.SettingShowProfilePhoto, TelegramAPI.RuleAllowAll);
|
||||
}
|
||||
}
|
||||
MenuItem {
|
||||
text: qsTr("Your contacts only")
|
||||
onClicked: {
|
||||
tdLibWrapper.setUserPrivacySettingRule(TelegramAPI.SettingShowProfilePhoto, TelegramAPI.RuleAllowContacts);
|
||||
}
|
||||
}
|
||||
MenuItem {
|
||||
text: qsTr("No")
|
||||
onClicked: {
|
||||
tdLibWrapper.setUserPrivacySettingRule(TelegramAPI.SettingShowProfilePhoto, TelegramAPI.RuleRestrictAll);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Component.onCompleted: {
|
||||
currentIndex = tdLibWrapper.getUserPrivacySettingRule(TelegramAPI.SettingShowProfilePhoto);
|
||||
}
|
||||
}
|
||||
|
||||
ComboBox {
|
||||
id: showStatusComboBox
|
||||
width: parent.columnWidth
|
||||
label: qsTr("Show status")
|
||||
description: qsTr("Privacy setting for managing whether your online status is visible.")
|
||||
menu: ContextMenu {
|
||||
|
||||
MenuItem {
|
||||
text: qsTr("Yes")
|
||||
onClicked: {
|
||||
tdLibWrapper.setUserPrivacySettingRule(TelegramAPI.SettingShowStatus, TelegramAPI.RuleAllowAll);
|
||||
}
|
||||
}
|
||||
MenuItem {
|
||||
text: qsTr("Your contacts only")
|
||||
onClicked: {
|
||||
tdLibWrapper.setUserPrivacySettingRule(TelegramAPI.SettingShowStatus, TelegramAPI.RuleAllowContacts);
|
||||
}
|
||||
}
|
||||
MenuItem {
|
||||
text: qsTr("No")
|
||||
onClicked: {
|
||||
tdLibWrapper.setUserPrivacySettingRule(TelegramAPI.SettingShowStatus, TelegramAPI.RuleRestrictAll);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Component.onCompleted: {
|
||||
currentIndex = tdLibWrapper.getUserPrivacySettingRule(TelegramAPI.SettingShowStatus);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
SectionHeader {
|
||||
text: qsTr("Behavior")
|
||||
}
|
||||
|
|
|
@ -139,6 +139,8 @@ TDLibReceiver::TDLibReceiver(void *tdLibClient, QObject *parent) : QThread(paren
|
|||
handlers.insert("updateChatDraftMessage", &TDLibReceiver::processUpdateChatDraftMessage);
|
||||
handlers.insert("inlineQueryResults", &TDLibReceiver::processInlineQueryResults);
|
||||
handlers.insert("callbackQueryAnswer", &TDLibReceiver::processCallbackQueryAnswer);
|
||||
handlers.insert("userPrivacySettingRules", &TDLibReceiver::processUserPrivacySettingRules);
|
||||
handlers.insert("updateUserPrivacySettingRules", &TDLibReceiver::processUpdateUserPrivacySettingRules);
|
||||
}
|
||||
|
||||
void TDLibReceiver::setActive(bool active)
|
||||
|
@ -607,7 +609,18 @@ void TDLibReceiver::processInlineQueryResults(const QVariantMap &receivedInforma
|
|||
|
||||
void TDLibReceiver::processCallbackQueryAnswer(const QVariantMap &receivedInformation)
|
||||
{
|
||||
|
||||
LOG("Callback Query answer");
|
||||
emit callbackQueryAnswer(receivedInformation.value(TEXT).toString(), receivedInformation.value("alert").toBool(), receivedInformation.value("url").toString());
|
||||
}
|
||||
|
||||
void TDLibReceiver::processUserPrivacySettingRules(const QVariantMap &receivedInformation)
|
||||
{
|
||||
LOG("User privacy setting rules");
|
||||
emit userPrivacySettingRules(receivedInformation);
|
||||
}
|
||||
|
||||
void TDLibReceiver::processUpdateUserPrivacySettingRules(const QVariantMap &receivedInformation)
|
||||
{
|
||||
LOG("User privacy setting rules updated");
|
||||
emit userPrivacySettingRulesUpdated(receivedInformation);
|
||||
}
|
||||
|
|
|
@ -95,6 +95,8 @@ signals:
|
|||
void chatDraftMessageUpdated(qlonglong chatId, const QVariantMap &draftMessage, const QString &order);
|
||||
void inlineQueryResults(const QString &inlineQueryId, const QString &nextOffset, const QVariantList &results, const QString &switchPmText, const QString &switchPmParameter, const QString &extra);
|
||||
void callbackQueryAnswer(const QString &text, bool alert, const QString &url);
|
||||
void userPrivacySettingRules(const QVariantMap &rules);
|
||||
void userPrivacySettingRulesUpdated(const QVariantMap &updatedRules);
|
||||
|
||||
private:
|
||||
typedef void (TDLibReceiver::*Handler)(const QVariantMap &);
|
||||
|
@ -164,6 +166,8 @@ private:
|
|||
void processUpdateChatDraftMessage(const QVariantMap &receivedInformation);
|
||||
void processInlineQueryResults(const QVariantMap &receivedInformation);
|
||||
void processCallbackQueryAnswer(const QVariantMap &receivedInformation);
|
||||
void processUserPrivacySettingRules(const QVariantMap &receivedInformation);
|
||||
void processUpdateUserPrivacySettingRules(const QVariantMap &receivedInformation);
|
||||
};
|
||||
|
||||
#endif // TDLIBRECEIVER_H
|
||||
|
|
|
@ -158,6 +158,8 @@ void TDLibWrapper::initializeTDLibReciever() {
|
|||
connect(this->tdLibReceiver, SIGNAL(chatDraftMessageUpdated(qlonglong, QVariantMap, QString)), this, SIGNAL(chatDraftMessageUpdated(qlonglong, QVariantMap, QString)));
|
||||
connect(this->tdLibReceiver, SIGNAL(inlineQueryResults(QString, QString, QVariantList, QString, QString, QString)), this, SIGNAL(inlineQueryResults(QString, QString, QVariantList, QString, QString, QString)));
|
||||
connect(this->tdLibReceiver, SIGNAL(callbackQueryAnswer(QString, bool, QString)), this, SIGNAL(callbackQueryAnswer(QString, bool, QString)));
|
||||
connect(this->tdLibReceiver, SIGNAL(userPrivacySettingRules(QVariantMap)), this, SLOT(handleUserPrivacySettingRules(QVariantMap)));
|
||||
connect(this->tdLibReceiver, SIGNAL(userPrivacySettingRulesUpdated(QVariantMap)), this, SLOT(handleUpdatedUserPrivacySettingRules(QVariantMap)));
|
||||
|
||||
this->tdLibReceiver->start();
|
||||
}
|
||||
|
@ -1205,7 +1207,7 @@ void TDLibWrapper::setUsername(const QString &userName)
|
|||
|
||||
void TDLibWrapper::setUserPrivacySettingRule(TDLibWrapper::UserPrivacySetting setting, TDLibWrapper::UserPrivacySettingRule rule)
|
||||
{
|
||||
LOG("Set user privecy setting rule of current user" << setting << rule);
|
||||
LOG("Set user privacy setting rule of current user" << setting << rule);
|
||||
QVariantMap requestObject;
|
||||
requestObject.insert(_TYPE, "setUserPrivacySettingRules");
|
||||
|
||||
|
@ -1229,6 +1231,8 @@ void TDLibWrapper::setUserPrivacySettingRule(TDLibWrapper::UserPrivacySetting se
|
|||
case SettingShowLinkInForwardedMessages:
|
||||
settingMap.insert(_TYPE, "userPrivacySettingShowLinkInForwardedMessages");
|
||||
break;
|
||||
case SettingUnknown:
|
||||
return;
|
||||
}
|
||||
requestObject.insert("setting", settingMap);
|
||||
|
||||
|
@ -1244,13 +1248,48 @@ void TDLibWrapper::setUserPrivacySettingRule(TDLibWrapper::UserPrivacySetting se
|
|||
case RuleRestrictAll:
|
||||
ruleMap.insert(_TYPE, "userPrivacySettingRuleRestrictAll");
|
||||
break;
|
||||
case RuleRestrictContacts:
|
||||
ruleMap.insert(_TYPE, "userPrivacySettingRuleRestrictContacts");
|
||||
break;
|
||||
}
|
||||
QVariantList ruleMaps;
|
||||
ruleMaps.append(ruleMap);
|
||||
requestObject.insert("rules", ruleMaps);
|
||||
QVariantMap encapsulatedRules;
|
||||
encapsulatedRules.insert(_TYPE, "userPrivacySettingRules");
|
||||
encapsulatedRules.insert("rules", ruleMaps);
|
||||
requestObject.insert("rules", encapsulatedRules);
|
||||
|
||||
this->sendRequest(requestObject);
|
||||
}
|
||||
|
||||
void TDLibWrapper::getUserPrivacySettingRules(TDLibWrapper::UserPrivacySetting setting)
|
||||
{
|
||||
LOG("Getting user privacy setting rules of current user" << setting);
|
||||
QVariantMap requestObject;
|
||||
requestObject.insert(_TYPE, "getUserPrivacySettingRules");
|
||||
requestObject.insert(_EXTRA, setting);
|
||||
|
||||
QVariantMap settingMap;
|
||||
switch (setting) {
|
||||
case SettingShowStatus:
|
||||
settingMap.insert(_TYPE, "userPrivacySettingShowStatus");
|
||||
break;
|
||||
case SettingShowPhoneNumber:
|
||||
settingMap.insert(_TYPE, "userPrivacySettingShowPhoneNumber");
|
||||
break;
|
||||
case SettingAllowChatInvites:
|
||||
settingMap.insert(_TYPE, "userPrivacySettingAllowChatInvites");
|
||||
break;
|
||||
case SettingShowProfilePhoto:
|
||||
settingMap.insert(_TYPE, "userPrivacySettingShowProfilePhoto");
|
||||
break;
|
||||
case SettingAllowFindingByPhoneNumber:
|
||||
settingMap.insert(_TYPE, "userPrivacySettingAllowFindingByPhoneNumber");
|
||||
break;
|
||||
case SettingShowLinkInForwardedMessages:
|
||||
settingMap.insert(_TYPE, "userPrivacySettingShowLinkInForwardedMessages");
|
||||
break;
|
||||
case SettingUnknown:
|
||||
return;
|
||||
}
|
||||
requestObject.insert("setting", settingMap);
|
||||
|
||||
this->sendRequest(requestObject);
|
||||
}
|
||||
|
@ -1286,6 +1325,11 @@ QVariantMap TDLibWrapper::getUserInformationByName(const QString &userName)
|
|||
return this->allUserNames.value(userName).toMap();
|
||||
}
|
||||
|
||||
TDLibWrapper::UserPrivacySettingRule TDLibWrapper::getUserPrivacySettingRule(TDLibWrapper::UserPrivacySetting userPrivacySetting)
|
||||
{
|
||||
return this->userPrivacySettingRules.value(userPrivacySetting, UserPrivacySettingRule::RuleAllowAll);
|
||||
}
|
||||
|
||||
QVariantMap TDLibWrapper::getUnreadMessageInformation()
|
||||
{
|
||||
return this->unreadMessageInformation;
|
||||
|
@ -1670,6 +1714,54 @@ void TDLibWrapper::handleMessageIsPinnedUpdated(qlonglong chatId, qlonglong mess
|
|||
}
|
||||
}
|
||||
|
||||
void TDLibWrapper::handleUserPrivacySettingRules(const QVariantMap &rules)
|
||||
{
|
||||
QVariantList newGivenRules = rules.value("rules").toList();
|
||||
UserPrivacySettingRule newAppliedRule = UserPrivacySettingRule::RuleAllowAll;
|
||||
QListIterator<QVariant> givenRulesIterator(newGivenRules);
|
||||
while (givenRulesIterator.hasNext()) {
|
||||
QString givenRule = givenRulesIterator.next().toMap().value(_TYPE).toString();
|
||||
if (givenRule == "userPrivacySettingRuleAllowContacts") {
|
||||
newAppliedRule = UserPrivacySettingRule::RuleAllowContacts;
|
||||
}
|
||||
if (givenRule == "userPrivacySettingRuleRestrictAll") {
|
||||
newAppliedRule = UserPrivacySettingRule::RuleRestrictAll;
|
||||
}
|
||||
}
|
||||
UserPrivacySetting usedSetting = static_cast<UserPrivacySetting>(rules.value(_EXTRA).toInt());
|
||||
this->userPrivacySettingRules.insert(usedSetting, newAppliedRule);
|
||||
emit userPrivacySettingUpdated(usedSetting, newAppliedRule);
|
||||
}
|
||||
|
||||
void TDLibWrapper::handleUpdatedUserPrivacySettingRules(const QVariantMap &updatedRules)
|
||||
{
|
||||
QString rawSetting = updatedRules.value("setting").toMap().value(_TYPE).toString();
|
||||
UserPrivacySetting usedSetting = UserPrivacySetting::SettingUnknown;
|
||||
if (rawSetting == "userPrivacySettingAllowChatInvites") {
|
||||
usedSetting = UserPrivacySetting::SettingAllowChatInvites;
|
||||
}
|
||||
if (rawSetting == "userPrivacySettingAllowFindingByPhoneNumber") {
|
||||
usedSetting = UserPrivacySetting::SettingAllowFindingByPhoneNumber;
|
||||
}
|
||||
if (rawSetting == "userPrivacySettingShowLinkInForwardedMessages") {
|
||||
usedSetting = UserPrivacySetting::SettingShowLinkInForwardedMessages;
|
||||
}
|
||||
if (rawSetting == "userPrivacySettingShowPhoneNumber") {
|
||||
usedSetting = UserPrivacySetting::SettingShowPhoneNumber;
|
||||
}
|
||||
if (rawSetting == "userPrivacySettingShowProfilePhoto") {
|
||||
usedSetting = UserPrivacySetting::SettingShowProfilePhoto;
|
||||
}
|
||||
if (rawSetting == "userPrivacySettingShowStatus") {
|
||||
usedSetting = UserPrivacySetting::SettingShowStatus;
|
||||
}
|
||||
if (usedSetting != UserPrivacySetting::SettingUnknown) {
|
||||
QVariantMap rawRules = updatedRules.value("rules").toMap();
|
||||
rawRules.insert(_TYPE, usedSetting);
|
||||
this->handleUserPrivacySettingRules(rawRules);
|
||||
}
|
||||
}
|
||||
|
||||
void TDLibWrapper::setInitialParameters()
|
||||
{
|
||||
LOG("Sending initial parameters to TD Lib");
|
||||
|
|
|
@ -95,15 +95,15 @@ public:
|
|||
SettingShowLinkInForwardedMessages,
|
||||
SettingShowPhoneNumber,
|
||||
SettingShowProfilePhoto,
|
||||
SettingShowStatus
|
||||
SettingShowStatus,
|
||||
SettingUnknown
|
||||
};
|
||||
Q_ENUM(UserPrivacySetting)
|
||||
|
||||
enum UserPrivacySettingRule {
|
||||
RuleAllowAll,
|
||||
RuleAllowContacts,
|
||||
RuleRestrictAll,
|
||||
RuleRestrictContacts
|
||||
RuleRestrictAll
|
||||
};
|
||||
Q_ENUM(UserPrivacySettingRule)
|
||||
|
||||
|
@ -124,6 +124,7 @@ public:
|
|||
Q_INVOKABLE QVariantMap getUserInformation(const QString &userId);
|
||||
Q_INVOKABLE bool hasUserInformation(const QString &userId);
|
||||
Q_INVOKABLE QVariantMap getUserInformationByName(const QString &userName);
|
||||
Q_INVOKABLE UserPrivacySettingRule getUserPrivacySettingRule(UserPrivacySetting userPrivacySetting);
|
||||
Q_INVOKABLE QVariantMap getUnreadMessageInformation();
|
||||
Q_INVOKABLE QVariantMap getUnreadChatInformation();
|
||||
Q_INVOKABLE QVariantMap getBasicGroup(qlonglong groupId) const;
|
||||
|
@ -217,6 +218,7 @@ public:
|
|||
Q_INVOKABLE void setName(const QString &firstName, const QString &lastName);
|
||||
Q_INVOKABLE void setUsername(const QString &userName);
|
||||
Q_INVOKABLE void setUserPrivacySettingRule(UserPrivacySetting setting, UserPrivacySettingRule rule);
|
||||
Q_INVOKABLE void getUserPrivacySettingRules(UserPrivacySetting setting);
|
||||
|
||||
// Others (candidates for extraction ;))
|
||||
Q_INVOKABLE void searchEmoji(const QString &queryString);
|
||||
|
@ -292,6 +294,7 @@ signals:
|
|||
void chatDraftMessageUpdated(qlonglong chatId, const QVariantMap &draftMessage, const QString &order);
|
||||
void inlineQueryResults(const QString &inlineQueryId, const QString &nextOffset, const QVariantList &results, const QString &switchPmText, const QString &switchPmParameter, const QString &extra);
|
||||
void callbackQueryAnswer(const QString &text, bool alert, const QString &url);
|
||||
void userPrivacySettingUpdated(UserPrivacySetting setting, UserPrivacySettingRule rule);
|
||||
|
||||
public slots:
|
||||
void handleVersionDetected(const QString &version);
|
||||
|
@ -316,6 +319,8 @@ public slots:
|
|||
void handleErrorReceived(int code, const QString &message, const QString &extra);
|
||||
void handleMessageInformation(qlonglong chatId, qlonglong messageId, const QVariantMap &receivedInformation);
|
||||
void handleMessageIsPinnedUpdated(qlonglong chatId, qlonglong messageId, bool isPinned);
|
||||
void handleUserPrivacySettingRules(const QVariantMap &rules);
|
||||
void handleUpdatedUserPrivacySettingRules(const QVariantMap &updatedRules);
|
||||
|
||||
private:
|
||||
void setOption(const QString &name, const QString &type, const QVariant &value);
|
||||
|
@ -337,6 +342,7 @@ private:
|
|||
TDLibWrapper::ConnectionState connectionState;
|
||||
QVariantMap options;
|
||||
QVariantMap userInformation;
|
||||
QMap<UserPrivacySetting, UserPrivacySettingRule> userPrivacySettingRules;
|
||||
QVariantMap allUsers;
|
||||
QVariantMap allUserNames;
|
||||
QVariantMap chats;
|
||||
|
|
|
@ -1556,6 +1556,66 @@
|
|||
<comment>user name of the logged-in profile - header</comment>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Allow chat invites</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Privacy setting for managing whether you can be invited to chats.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Yes</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Your contacts only</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>No</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Allow finding by phone number</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Privacy setting for managing whether you can be found by your phone number.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Show link in forwarded messages</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Privacy setting for managing whether a link to your account is included in forwarded messages.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Show phone number</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Privacy setting for managing whether your phone number is visible.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Show profile photo</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Privacy setting for managing whether your profile photo is visible.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Show status</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Privacy setting for managing whether your online status is visible.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>StickerPicker</name>
|
||||
|
|
|
@ -1556,6 +1556,66 @@
|
|||
<comment>user name of the logged-in profile - header</comment>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Allow chat invites</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Privacy setting for managing whether you can be invited to chats.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Yes</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Your contacts only</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>No</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Allow finding by phone number</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Privacy setting for managing whether you can be found by your phone number.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Show link in forwarded messages</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Privacy setting for managing whether a link to your account is included in forwarded messages.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Show phone number</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Privacy setting for managing whether your phone number is visible.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Show profile photo</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Privacy setting for managing whether your profile photo is visible.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Show status</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Privacy setting for managing whether your online status is visible.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>StickerPicker</name>
|
||||
|
|
|
@ -1556,6 +1556,66 @@
|
|||
<comment>user name of the logged-in profile - header</comment>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Allow chat invites</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Privacy setting for managing whether you can be invited to chats.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Yes</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Your contacts only</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>No</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Allow finding by phone number</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Privacy setting for managing whether you can be found by your phone number.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Show link in forwarded messages</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Privacy setting for managing whether a link to your account is included in forwarded messages.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Show phone number</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Privacy setting for managing whether your phone number is visible.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Show profile photo</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Privacy setting for managing whether your profile photo is visible.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Show status</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Privacy setting for managing whether your online status is visible.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>StickerPicker</name>
|
||||
|
|
|
@ -1557,6 +1557,66 @@
|
|||
<comment>user name of the logged-in profile - header</comment>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Allow chat invites</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Privacy setting for managing whether you can be invited to chats.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Yes</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Your contacts only</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>No</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Allow finding by phone number</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Privacy setting for managing whether you can be found by your phone number.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Show link in forwarded messages</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Privacy setting for managing whether a link to your account is included in forwarded messages.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Show phone number</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Privacy setting for managing whether your phone number is visible.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Show profile photo</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Privacy setting for managing whether your profile photo is visible.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Show status</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Privacy setting for managing whether your online status is visible.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>StickerPicker</name>
|
||||
|
|
|
@ -1531,6 +1531,66 @@
|
|||
<comment>user name of the logged-in profile - header</comment>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Allow chat invites</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Privacy setting for managing whether you can be invited to chats.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Yes</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Your contacts only</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>No</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Allow finding by phone number</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Privacy setting for managing whether you can be found by your phone number.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Show link in forwarded messages</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Privacy setting for managing whether a link to your account is included in forwarded messages.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Show phone number</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Privacy setting for managing whether your phone number is visible.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Show profile photo</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Privacy setting for managing whether your profile photo is visible.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Show status</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Privacy setting for managing whether your online status is visible.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>StickerPicker</name>
|
||||
|
|
|
@ -1556,6 +1556,66 @@
|
|||
<comment>user name of the logged-in profile - header</comment>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Allow chat invites</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Privacy setting for managing whether you can be invited to chats.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Yes</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Your contacts only</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>No</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Allow finding by phone number</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Privacy setting for managing whether you can be found by your phone number.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Show link in forwarded messages</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Privacy setting for managing whether a link to your account is included in forwarded messages.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Show phone number</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Privacy setting for managing whether your phone number is visible.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Show profile photo</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Privacy setting for managing whether your profile photo is visible.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Show status</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Privacy setting for managing whether your online status is visible.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>StickerPicker</name>
|
||||
|
|
|
@ -1581,6 +1581,66 @@
|
|||
<comment>user name of the logged-in profile - header</comment>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Allow chat invites</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Privacy setting for managing whether you can be invited to chats.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Yes</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Your contacts only</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>No</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Allow finding by phone number</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Privacy setting for managing whether you can be found by your phone number.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Show link in forwarded messages</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Privacy setting for managing whether a link to your account is included in forwarded messages.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Show phone number</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Privacy setting for managing whether your phone number is visible.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Show profile photo</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Privacy setting for managing whether your profile photo is visible.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Show status</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Privacy setting for managing whether your online status is visible.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>StickerPicker</name>
|
||||
|
|
|
@ -1581,6 +1581,66 @@
|
|||
<comment>user name of the logged-in profile - header</comment>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Allow chat invites</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Privacy setting for managing whether you can be invited to chats.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Yes</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Your contacts only</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>No</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Allow finding by phone number</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Privacy setting for managing whether you can be found by your phone number.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Show link in forwarded messages</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Privacy setting for managing whether a link to your account is included in forwarded messages.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Show phone number</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Privacy setting for managing whether your phone number is visible.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Show profile photo</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Privacy setting for managing whether your profile photo is visible.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Show status</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Privacy setting for managing whether your online status is visible.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>StickerPicker</name>
|
||||
|
|
|
@ -1556,6 +1556,66 @@
|
|||
<comment>user name of the logged-in profile - header</comment>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Allow chat invites</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Privacy setting for managing whether you can be invited to chats.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Yes</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Your contacts only</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>No</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Allow finding by phone number</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Privacy setting for managing whether you can be found by your phone number.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Show link in forwarded messages</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Privacy setting for managing whether a link to your account is included in forwarded messages.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Show phone number</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Privacy setting for managing whether your phone number is visible.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Show profile photo</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Privacy setting for managing whether your profile photo is visible.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Show status</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Privacy setting for managing whether your online status is visible.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>StickerPicker</name>
|
||||
|
|
|
@ -1531,6 +1531,66 @@
|
|||
<comment>user name of the logged-in profile - header</comment>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Allow chat invites</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Privacy setting for managing whether you can be invited to chats.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Yes</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Your contacts only</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>No</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Allow finding by phone number</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Privacy setting for managing whether you can be found by your phone number.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Show link in forwarded messages</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Privacy setting for managing whether a link to your account is included in forwarded messages.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Show phone number</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Privacy setting for managing whether your phone number is visible.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Show profile photo</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Privacy setting for managing whether your profile photo is visible.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Show status</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Privacy setting for managing whether your online status is visible.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>StickerPicker</name>
|
||||
|
|
|
@ -1556,6 +1556,66 @@
|
|||
<comment>user name of the logged-in profile - header</comment>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Allow chat invites</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Privacy setting for managing whether you can be invited to chats.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Yes</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Your contacts only</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>No</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Allow finding by phone number</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Privacy setting for managing whether you can be found by your phone number.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Show link in forwarded messages</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Privacy setting for managing whether a link to your account is included in forwarded messages.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Show phone number</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Privacy setting for managing whether your phone number is visible.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Show profile photo</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Privacy setting for managing whether your profile photo is visible.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Show status</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Privacy setting for managing whether your online status is visible.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>StickerPicker</name>
|
||||
|
|
Loading…
Reference in a new issue