Display all error messages (let's see how it works...)

This commit is contained in:
Sebastian Wolf 2020-11-15 23:29:04 +01:00
parent 639c5f4960
commit c8c0044815
17 changed files with 57 additions and 4 deletions

View file

@ -59,7 +59,7 @@ Page {
}
Label {
text: "Fernschreiber 0.4.1"
text: "Fernschreiber 0.5"
horizontalAlignment: Text.AlignHCenter
font.pixelSize: Theme.fontSizeExtraLarge
anchors {

View file

@ -340,6 +340,13 @@ Page {
onEmojiSearchSuccessful: {
chatPage.emojiProposals = result;
}
onErrorReceived: {
if (message === "USER_ALREADY_PARTICIPANT") {
appNotification.show(qsTr("You are already a member of this chat."));
} else {
appNotification.show(message);
}
}
}
Connections {

View file

@ -162,6 +162,8 @@ Page {
onErrorReceived: {
if (message === "USER_ALREADY_PARTICIPANT") {
appNotification.show(qsTr("You are already a member of this chat."));
} else {
appNotification.show(message);
}
}
}

View file

@ -11,7 +11,7 @@ Name: harbour-fernschreiber
# << macros
Summary: Fernschreiber is a Telegram client for Sailfish OS
Version: 0.4.1
Version: 0.5
Release: 1
Group: Qt/Qt
License: LICENSE

View file

@ -1,6 +1,6 @@
Name: harbour-fernschreiber
Summary: Fernschreiber is a Telegram client for Sailfish OS
Version: 0.4.1
Version: 0.5
Release: 1
# The contents of the Group field should be one of the groups listed here:
# https://github.com/mer-tools/spectacle/blob/master/data/GROUPS

View file

@ -1129,7 +1129,7 @@ void TDLibWrapper::setInitialParameters()
QSettings hardwareSettings("/etc/hw-release", QSettings::NativeFormat);
initialParameters.insert("device_model", hardwareSettings.value("NAME", "Unknown Mobile Device").toString());
initialParameters.insert("system_version", QSysInfo::prettyProductName());
initialParameters.insert("application_version", "0.4.1");
initialParameters.insert("application_version", "0.5");
// initialParameters.insert("use_test_dc", true);
requestObject.insert("parameters", initialParameters);
this->sendRequest(requestObject);

View file

@ -347,6 +347,10 @@
<numerusform>%n Nachrichten weiterleiten</numerusform>
</translation>
</message>
<message>
<source>You are already a member of this chat.</source>
<translation>Sie sind bereits Mitglied dieses Chats.</translation>
</message>
</context>
<context>
<name>ChatSelectionPage</name>

View file

@ -347,6 +347,10 @@
<numerusform>Forward %n messages</numerusform>
</translation>
</message>
<message>
<source>You are already a member of this chat.</source>
<translation type="unfinished">You are already a member of this chat.</translation>
</message>
</context>
<context>
<name>ChatSelectionPage</name>

View file

@ -343,6 +343,10 @@
<numerusform></numerusform>
</translation>
</message>
<message>
<source>You are already a member of this chat.</source>
<translation type="unfinished">Ya eres miembro de este grupo.</translation>
</message>
</context>
<context>
<name>ChatSelectionPage</name>

View file

@ -347,6 +347,10 @@
<numerusform></numerusform>
</translation>
</message>
<message>
<source>You are already a member of this chat.</source>
<translation type="unfinished">Olet jo tämän ryhmän jäsen.</translation>
</message>
</context>
<context>
<name>ChatSelectionPage</name>

View file

@ -343,6 +343,10 @@
<numerusform></numerusform>
</translation>
</message>
<message>
<source>You are already a member of this chat.</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>ChatSelectionPage</name>

View file

@ -347,6 +347,10 @@
<numerusform></numerusform>
</translation>
</message>
<message>
<source>You are already a member of this chat.</source>
<translation type="unfinished">Sei già membro di questa chat.</translation>
</message>
</context>
<context>
<name>ChatSelectionPage</name>

View file

@ -351,6 +351,10 @@
<numerusform></numerusform>
</translation>
</message>
<message>
<source>You are already a member of this chat.</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>ChatSelectionPage</name>

View file

@ -351,6 +351,10 @@
<numerusform></numerusform>
</translation>
</message>
<message>
<source>You are already a member of this chat.</source>
<translation type="unfinished">Вы уже в этом чате.</translation>
</message>
</context>
<context>
<name>ChatSelectionPage</name>

View file

@ -347,6 +347,10 @@
<numerusform></numerusform>
</translation>
</message>
<message>
<source>You are already a member of this chat.</source>
<translation type="unfinished">Du är redan medlem i den här chatten.</translation>
</message>
</context>
<context>
<name>ChatSelectionPage</name>

View file

@ -343,6 +343,10 @@
<numerusform></numerusform>
</translation>
</message>
<message>
<source>You are already a member of this chat.</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>ChatSelectionPage</name>

View file

@ -343,6 +343,10 @@
<numerusform></numerusform>
</translation>
</message>
<message>
<source>You are already a member of this chat.</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>ChatSelectionPage</name>