Prepare support for contact sync with SFOS 4.5

This commit is contained in:
Sebastian Wolf 2023-02-05 20:17:06 +01:00
parent f152bbeb5b
commit a7ab0ed33a
No known key found for this signature in database
GPG key ID: CEA9522B5F38A90A
24 changed files with 441 additions and 110 deletions

View file

@ -6,6 +6,6 @@ Exec=harbour-fernschreiber
Name=Fernschreiber Name=Fernschreiber
[X-Sailjail] [X-Sailjail]
Permissions=Audio;Documents;Downloads;Internet;Location;MediaIndexing;Microphone;Music;Pictures;PublicDir;RemovableMedia;UserDirs;Videos Permissions=Audio;Contacts;Documents;Downloads;Internet;Location;MediaIndexing;Microphone;Music;Pictures;PublicDir;RemovableMedia;UserDirs;Videos
OrganizationName=de.ygriega OrganizationName=de.ygriega
ApplicationName=fernschreiber ApplicationName=fernschreiber

View file

@ -46,6 +46,7 @@ DISTFILES += qml/harbour-fernschreiber.qml \
qml/components/AudioPreview.qml \ qml/components/AudioPreview.qml \
qml/components/BackgroundImage.qml \ qml/components/BackgroundImage.qml \
qml/components/ChatListViewItem.qml \ qml/components/ChatListViewItem.qml \
qml/components/ContactSync.qml \
qml/components/DocumentPreview.qml \ qml/components/DocumentPreview.qml \
qml/components/GamePreview.qml \ qml/components/GamePreview.qml \
qml/components/ImagePreview.qml \ qml/components/ImagePreview.qml \

View file

@ -0,0 +1,44 @@
/*
Copyright (C) 2021 Sebastian J. Wolf and other contributors
This file is part of Fernschreiber.
Fernschreiber is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Fernschreiber is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Fernschreiber. If not, see <http://www.gnu.org/licenses/>.
*/
import QtQuick 2.0
import org.nemomobile.contacts 1.0
Item {
signal syncError();
function synchronize() {
if (peopleModel.count === 0) {
appNotification.show(qsTr("Could not synchronize your contacts with Telegram."));
syncError();
} else {
contactsModel.startImportingContacts();
for (var i = 0; i < peopleModel.count; i++ ) {
contactsModel.importContact(peopleModel.get(i));
}
contactsModel.stopImportingContacts();
}
}
PeopleModel {
id: peopleModel
requiredProperty: PeopleModel.PhoneNumberRequired
}
}

View file

@ -35,6 +35,7 @@ AccordionItem {
readonly property var userInformation: tdLibWrapper.getUserInformation() readonly property var userInformation: tdLibWrapper.getUserInformation()
property bool uploadInProgress: false property bool uploadInProgress: false
property bool contactSyncEnabled: false
Component.onCompleted: { Component.onCompleted: {
tdLibWrapper.getUserProfilePhotos(userInformation.id, 100, 0); tdLibWrapper.getUserProfilePhotos(userInformation.id, 100, 0);
@ -151,6 +152,49 @@ AccordionItem {
} }
} }
Column {
id: contactSyncItem
width: parent.width
height: syncInProgress ? ( syncContactsBusyIndicator.height + Theme.paddingMedium ) : ( syncContactsButton.height + Theme.paddingMedium )
visible: accordionContent.contactSyncEnabled
property bool syncInProgress: false
Connections {
target: contactSyncLoader.item
onSyncError: {
contactSyncItem.syncInProgress = false;
}
}
Connections {
target: tdLibWrapper
onContactsImported: {
appNotification.show(qsTr("Contacts successfully synchronized with Telegram."));
}
}
Button {
id: syncContactsButton
text: qsTr("Synchronize Contacts with Telegram")
visible: !contactSyncItem.syncInProgress
anchors {
horizontalCenter: parent.horizontalCenter
}
onClicked: {
contactSyncLoader.item.synchronize();
}
}
BusyIndicator {
id: syncContactsBusyIndicator
anchors.horizontalCenter: parent.horizontalCenter
running: contactSyncItem.syncInProgress
size: BusyIndicatorSize.Small
visible: running
}
}
} }
SectionHeader { SectionHeader {
@ -247,6 +291,15 @@ AccordionItem {
} }
Loader {
id: contactSyncLoader
source: "../ContactSync.qml"
active: true
onLoaded: {
accordionContent.contactSyncEnabled = true;
}
}
Component { Component {
id: imagePickerPage id: imagePickerPage
ImagePickerPage { ImagePickerPage {

View file

@ -57,7 +57,7 @@ Page {
} }
Label { Label {
text: "Fernschreiber 0.16" text: "Fernschreiber 0.17"
horizontalAlignment: Text.AlignHCenter horizontalAlignment: Text.AlignHCenter
font.pixelSize: Theme.fontSizeExtraLarge font.pixelSize: Theme.fontSizeExtraLarge
anchors { anchors {

View file

@ -55,16 +55,19 @@ Page {
} }
} }
Component.onCompleted: { Connections {
// With Sailfish OS 4 we can't get up-to-date contacts andmore. We might need to enter Sailjail eventually... target: contactSyncLoader.item
// Details see https://forum.sailfishos.org/t/4-0-1-45-non-jailed-contacts-sqlite-database-no-longer-updated/4724 onSyncError: {
var sailfishOSVersion = fernschreiberUtils.getSailfishOSVersion().split("."); newChatPage.isLoading = false;
if (parseInt(sailfishOSVersion[0]) < 4) { }
Debug.log("Sailfish OS version 3.x - contact sync should still be possible...") }
Loader {
id: contactSyncLoader
source: "../components/ContactSync.qml"
active: true
onLoaded: {
newChatPage.syncSupported = true; newChatPage.syncSupported = true;
} else {
Debug.log("Sailfish OS version 4.x - contact sync no longer supported...")
newChatPage.syncSupported = false;
} }
} }
@ -74,14 +77,11 @@ Page {
anchors.fill: parent anchors.fill: parent
PullDownMenu { PullDownMenu {
visible: contactsModel.canSynchronizeContacts() && newChatPage.syncSupported visible: newChatPage.syncSupported
MenuItem { MenuItem {
onClicked: { onClicked: {
newChatPage.isLoading = true; newChatPage.isLoading = true;
if (!contactsModel.synchronizeContacts()) { contactSyncLoader.item.synchronize();
reloadContacts();
appNotification.show(qsTr("Could not synchronize your contacts with Telegram."));
}
// Success message is not fired before TDLib returned "Contacts imported" (see above) // Success message is not fired before TDLib returned "Contacts imported" (see above)
} }
text: qsTr("Synchronize Contacts with Telegram") text: qsTr("Synchronize Contacts with Telegram")

View file

@ -11,14 +11,15 @@ Name: harbour-fernschreiber
# << macros # << macros
Summary: Fernschreiber is a Telegram client for Sailfish OS Summary: Fernschreiber is a Telegram client for Sailfish OS
Version: 0.16 Version: 0.17
Release: 4 Release: 1
Group: Qt/Qt Group: Qt/Qt
License: LICENSE License: LICENSE
URL: http://werkwolf.eu/ URL: http://werkwolf.eu/
Source0: %{name}-%{version}.tar.bz2 Source0: %{name}-%{version}.tar.bz2
Source100: harbour-fernschreiber.yaml Source100: harbour-fernschreiber.yaml
Requires: sailfishsilica-qt5 >= 0.10.9 Requires: sailfishsilica-qt5 >= 0.10.9
Requires: nemo-qml-plugin-contacts-qt5
BuildRequires: pkgconfig(sailfishapp) >= 1.0.2 BuildRequires: pkgconfig(sailfishapp) >= 1.0.2
BuildRequires: pkgconfig(Qt5Core) BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5Qml) BuildRequires: pkgconfig(Qt5Qml)

View file

@ -1,7 +1,7 @@
Name: harbour-fernschreiber Name: harbour-fernschreiber
Summary: Fernschreiber is a Telegram client for Sailfish OS Summary: Fernschreiber is a Telegram client for Sailfish OS
Version: 0.16 Version: 0.17
Release: 4 Release: 1
# The contents of the Group field should be one of the groups listed here: # The contents of the Group field should be one of the groups listed here:
# https://github.com/mer-tools/spectacle/blob/master/data/GROUPS # https://github.com/mer-tools/spectacle/blob/master/data/GROUPS
Group: Qt/Qt Group: Qt/Qt
@ -37,6 +37,7 @@ PkgBR:
# Runtime dependencies which are not automatically detected # Runtime dependencies which are not automatically detected
Requires: Requires:
- sailfishsilica-qt5 >= 0.10.9 - sailfishsilica-qt5 >= 0.10.9
- nemo-qml-plugin-contacts-qt5
# All installed files # All installed files
Files: Files:

View file

@ -39,16 +39,6 @@ ContactsModel::ContactsModel(TDLibWrapper *tdLibWrapper, QObject *parent)
{ {
this->tdLibWrapper = tdLibWrapper; this->tdLibWrapper = tdLibWrapper;
connect(this->tdLibWrapper, SIGNAL(usersReceived(QString, QVariantList, int)), this, SLOT(handleUsersReceived(QString, QVariantList, int))); connect(this->tdLibWrapper, SIGNAL(usersReceived(QString, QVariantList, int)), this, SLOT(handleUsersReceived(QString, QVariantList, int)));
this->deviceContactsDatabase = QSqlDatabase::addDatabase("QSQLITE", "contacts");
this->deviceContactsDatabase.setDatabaseName(QStandardPaths::writableLocation(QStandardPaths::HomeLocation) + "/.local/share/system/Contacts/qtcontacts-sqlite/contacts.db");
if (this->deviceContactsDatabase.open()) {
LOG("Device's contacts database successfully opened :)");
this->canUseDeviceContacts = true;
} else {
LOG("Error opening device's contacts database :(");
this->canUseDeviceContacts = false;
}
} }
QHash<int, QByteArray> ContactsModel::roleNames() const QHash<int, QByteArray> ContactsModel::roleNames() const
@ -150,35 +140,31 @@ void ContactsModel::hydrateContacts()
std::sort(this->contacts.begin(), this->contacts.end(), compareUsers); std::sort(this->contacts.begin(), this->contacts.end(), compareUsers);
} }
bool ContactsModel::synchronizeContacts() void ContactsModel::startImportingContacts()
{ {
LOG("Synchronizing device contacts"); this->deviceContacts.clear();
QVariantList deviceContacts;
QSqlQuery databaseQuery(this->deviceContactsDatabase);
databaseQuery.prepare("select distinct c.contactId, c.firstName, c.lastName, n.phoneNumber from Contacts as c inner join PhoneNumbers as n on c.contactId = n.contactId where n.phoneNumber is not null and ( c.firstName is not null or c.lastName is not null );");
if (databaseQuery.exec()) {
LOG("Device contacts successfully selected from database!");
while (databaseQuery.next()) {
QVariantMap singleContact;
singleContact.insert("first_name", databaseQuery.value(1).toString());
singleContact.insert("last_name", databaseQuery.value(2).toString());
singleContact.insert("phone_number", databaseQuery.value(3).toString());
deviceContacts.append(singleContact);
LOG("Found contact" << singleContact.value("first_name").toString() << singleContact.value("last_name").toString() << singleContact.value("phone_number").toString());
} }
void ContactsModel::stopImportingContacts()
{
if (!deviceContacts.isEmpty()) { if (!deviceContacts.isEmpty()) {
LOG("Importing found contacts" << deviceContacts.size()); LOG("Importing found contacts" << deviceContacts.size());
this->tdLibWrapper->importContacts(deviceContacts); this->tdLibWrapper->importContacts(deviceContacts);
} }
return true;
} else {
LOG("Error selecting contacts from database!");
return false;
} }
} void ContactsModel::importContact(const QVariantMap &singlePerson)
bool ContactsModel::canSynchronizeContacts()
{ {
return this->canUseDeviceContacts; QString firstName = singlePerson.value("firstName").toString();
QVariantList phoneNumbers = singlePerson.value("phoneNumbers").toList();
if (!firstName.isEmpty() && !phoneNumbers.isEmpty()) {
for (QVariant phoneNumber : phoneNumbers) {
QVariantMap singleContact;
singleContact.insert("first_name", firstName);
singleContact.insert("last_name", singlePerson.value("lastName").toString());
singleContact.insert("phone_number", phoneNumber.toString());
deviceContacts.append(singleContact);
LOG("Found contact" << singleContact.value("first_name").toString() << singleContact.value("last_name").toString() << singleContact.value("phone_number").toString());
}
}
} }

View file

@ -22,8 +22,6 @@
#include <QAbstractListModel> #include <QAbstractListModel>
#include <QVariantList> #include <QVariantList>
#include <QSqlDatabase>
#include <QSqlQuery>
#include "tdlibwrapper.h" #include "tdlibwrapper.h"
@ -50,8 +48,9 @@ public:
virtual QVariant data(const QModelIndex &index, int role) const override; virtual QVariant data(const QModelIndex &index, int role) const override;
Q_INVOKABLE void hydrateContacts(); Q_INVOKABLE void hydrateContacts();
Q_INVOKABLE bool synchronizeContacts(); Q_INVOKABLE void startImportingContacts();
Q_INVOKABLE bool canSynchronizeContacts(); Q_INVOKABLE void stopImportingContacts();
Q_INVOKABLE void importContact(const QVariantMap &singlePerson);
public slots: public slots:
void handleUsersReceived(const QString &extra, const QVariantList &userIds, int totalUsers); void handleUsersReceived(const QString &extra, const QVariantList &userIds, int totalUsers);
@ -61,8 +60,7 @@ private:
QVariantList contacts; QVariantList contacts;
QList<QString> contactIds; QList<QString> contactIds;
QString filter; QString filter;
QSqlDatabase deviceContactsDatabase; QVariantList deviceContacts;
bool canUseDeviceContacts;
}; };
#endif // CONTACTSMODEL_H #endif // CONTACTSMODEL_H

View file

@ -2095,7 +2095,7 @@ void TDLibWrapper::setInitialParameters()
QSettings hardwareSettings("/etc/hw-release", QSettings::NativeFormat); QSettings hardwareSettings("/etc/hw-release", QSettings::NativeFormat);
initialParameters.insert("device_model", hardwareSettings.value("NAME", "Unknown Mobile Device").toString()); initialParameters.insert("device_model", hardwareSettings.value("NAME", "Unknown Mobile Device").toString());
initialParameters.insert("system_version", QSysInfo::prettyProductName()); initialParameters.insert("system_version", QSysInfo::prettyProductName());
initialParameters.insert("application_version", "0.16"); initialParameters.insert("application_version", "0.17");
initialParameters.insert("enable_storage_optimizer", appSettings->storageOptimizer()); initialParameters.insert("enable_storage_optimizer", appSettings->storageOptimizer());
// initialParameters.insert("use_test_dc", true); // initialParameters.insert("use_test_dc", true);
requestObject.insert("parameters", initialParameters); requestObject.insert("parameters", initialParameters);

View file

@ -183,6 +183,10 @@
<source>Mute Chat</source> <source>Mute Chat</source>
<translation>Chat stummschalten</translation> <translation>Chat stummschalten</translation>
</message> </message>
<message>
<source>ID has been copied to the clipboard.</source>
<translation>ID wurde in die Zwischenablage kopiert</translation>
</message>
</context> </context>
<context> <context>
<name>ChatInformationTabItemMembersGroups</name> <name>ChatInformationTabItemMembersGroups</name>
@ -491,6 +495,13 @@
<translation>Sie haben noch keine Chats.</translation> <translation>Sie haben noch keine Chats.</translation>
</message> </message>
</context> </context>
<context>
<name>ContactSync</name>
<message>
<source>Could not synchronize your contacts with Telegram.</source>
<translation>Konnte Ihre Kontakte nicht mit Telegram synchronisieren.</translation>
</message>
</context>
<context> <context>
<name>CoverPage</name> <name>CoverPage</name>
<message> <message>
@ -1149,14 +1160,14 @@
<source>Synchronize Contacts with Telegram</source> <source>Synchronize Contacts with Telegram</source>
<translation>Kontakte mit Telegram synchronisieren</translation> <translation>Kontakte mit Telegram synchronisieren</translation>
</message> </message>
<message>
<source>Could not synchronize your contacts with Telegram.</source>
<translation>Konnte Ihre Kontakte nicht mit Telegram synchronisieren.</translation>
</message>
<message> <message>
<source>Contacts successfully synchronized with Telegram.</source> <source>Contacts successfully synchronized with Telegram.</source>
<translation>Die Kontakte wurden erfolgreich mit Telegram synchronisiert.</translation> <translation>Die Kontakte wurden erfolgreich mit Telegram synchronisiert.</translation>
</message> </message>
<message>
<source>No contacts found.</source>
<translation>Keine Kontakte gefunden</translation>
</message>
</context> </context>
<context> <context>
<name>NotificationManager</name> <name>NotificationManager</name>
@ -1765,6 +1776,14 @@
<source>Phone number: +%1</source> <source>Phone number: +%1</source>
<translation>Telefonnummer: +%1</translation> <translation>Telefonnummer: +%1</translation>
</message> </message>
<message>
<source>Contacts successfully synchronized with Telegram.</source>
<translation>Die Kontakte wurden erfolgreich mit Telegram synchronisiert.</translation>
</message>
<message>
<source>Synchronize Contacts with Telegram</source>
<translation>Kontakte mit Telegram synchronisieren</translation>
</message>
</context> </context>
<context> <context>
<name>SponsoredMessage</name> <name>SponsoredMessage</name>

View file

@ -183,6 +183,10 @@
<source>Mute Chat</source> <source>Mute Chat</source>
<translation>Mute Chat</translation> <translation>Mute Chat</translation>
</message> </message>
<message>
<source>ID has been copied to the clipboard.</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>ChatInformationTabItemMembersGroups</name> <name>ChatInformationTabItemMembersGroups</name>
@ -491,6 +495,13 @@
<translation>You don&apos;t have any chats yet.</translation> <translation>You don&apos;t have any chats yet.</translation>
</message> </message>
</context> </context>
<context>
<name>ContactSync</name>
<message>
<source>Could not synchronize your contacts with Telegram.</source>
<translation type="unfinished">Could not synchronize your contacts with Telegram.</translation>
</message>
</context>
<context> <context>
<name>CoverPage</name> <name>CoverPage</name>
<message> <message>
@ -1151,14 +1162,14 @@ messages</numerusform>
<source>Synchronize Contacts with Telegram</source> <source>Synchronize Contacts with Telegram</source>
<translation>Synchronize Contacts with Telegram</translation> <translation>Synchronize Contacts with Telegram</translation>
</message> </message>
<message>
<source>Could not synchronize your contacts with Telegram.</source>
<translation>Could not synchronize your contacts with Telegram.</translation>
</message>
<message> <message>
<source>Contacts successfully synchronized with Telegram.</source> <source>Contacts successfully synchronized with Telegram.</source>
<translation>Contacts successfully synchronized with Telegram.</translation> <translation>Contacts successfully synchronized with Telegram.</translation>
</message> </message>
<message>
<source>No contacts found.</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>NotificationManager</name> <name>NotificationManager</name>
@ -1767,6 +1778,14 @@ messages</numerusform>
<source>Phone number: +%1</source> <source>Phone number: +%1</source>
<translation>Phone number: +%1</translation> <translation>Phone number: +%1</translation>
</message> </message>
<message>
<source>Contacts successfully synchronized with Telegram.</source>
<translation type="unfinished">Contacts successfully synchronized with Telegram.</translation>
</message>
<message>
<source>Synchronize Contacts with Telegram</source>
<translation type="unfinished">Synchronize Contacts with Telegram</translation>
</message>
</context> </context>
<context> <context>
<name>SponsoredMessage</name> <name>SponsoredMessage</name>

View file

@ -183,6 +183,10 @@
<source>Mute Chat</source> <source>Mute Chat</source>
<translation>No notificar</translation> <translation>No notificar</translation>
</message> </message>
<message>
<source>ID has been copied to the clipboard.</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>ChatInformationTabItemMembersGroups</name> <name>ChatInformationTabItemMembersGroups</name>
@ -491,6 +495,13 @@
<translation>No hay todavía conversaciones.</translation> <translation>No hay todavía conversaciones.</translation>
</message> </message>
</context> </context>
<context>
<name>ContactSync</name>
<message>
<source>Could not synchronize your contacts with Telegram.</source>
<translation type="unfinished">No se pudieron sincronizar los contactos con Telegram.</translation>
</message>
</context>
<context> <context>
<name>CoverPage</name> <name>CoverPage</name>
<message> <message>
@ -1149,14 +1160,14 @@
<source>Synchronize Contacts with Telegram</source> <source>Synchronize Contacts with Telegram</source>
<translation>Sincronizar con Telegram</translation> <translation>Sincronizar con Telegram</translation>
</message> </message>
<message>
<source>Could not synchronize your contacts with Telegram.</source>
<translation>No se pudieron sincronizar los contactos con Telegram.</translation>
</message>
<message> <message>
<source>Contacts successfully synchronized with Telegram.</source> <source>Contacts successfully synchronized with Telegram.</source>
<translation>Contactos sincronizados con éxito con Telegram.</translation> <translation>Contactos sincronizados con éxito con Telegram.</translation>
</message> </message>
<message>
<source>No contacts found.</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>NotificationManager</name> <name>NotificationManager</name>
@ -1765,6 +1776,14 @@
<source>Phone number: +%1</source> <source>Phone number: +%1</source>
<translation></translation> <translation></translation>
</message> </message>
<message>
<source>Contacts successfully synchronized with Telegram.</source>
<translation>Contactos sincronizados con éxito con Telegram.</translation>
</message>
<message>
<source>Synchronize Contacts with Telegram</source>
<translation>Sincronizar con Telegram</translation>
</message>
</context> </context>
<context> <context>
<name>SponsoredMessage</name> <name>SponsoredMessage</name>

View file

@ -183,6 +183,10 @@
<source>Mute Chat</source> <source>Mute Chat</source>
<translation>Vaimenna keskustelu</translation> <translation>Vaimenna keskustelu</translation>
</message> </message>
<message>
<source>ID has been copied to the clipboard.</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>ChatInformationTabItemMembersGroups</name> <name>ChatInformationTabItemMembersGroups</name>
@ -491,6 +495,13 @@
<translation>Sinulla ei ole vielä keskusteluja.</translation> <translation>Sinulla ei ole vielä keskusteluja.</translation>
</message> </message>
</context> </context>
<context>
<name>ContactSync</name>
<message>
<source>Could not synchronize your contacts with Telegram.</source>
<translation type="unfinished">Yhteystietojasi ei voitu synkronoida Telegramin kanssa.</translation>
</message>
</context>
<context> <context>
<name>CoverPage</name> <name>CoverPage</name>
<message> <message>
@ -1150,14 +1161,14 @@
<source>Synchronize Contacts with Telegram</source> <source>Synchronize Contacts with Telegram</source>
<translation>Synkronoi yhteystiedot Telegramin kanssa</translation> <translation>Synkronoi yhteystiedot Telegramin kanssa</translation>
</message> </message>
<message>
<source>Could not synchronize your contacts with Telegram.</source>
<translation>Yhteystietojasi ei voitu synkronoida Telegramin kanssa.</translation>
</message>
<message> <message>
<source>Contacts successfully synchronized with Telegram.</source> <source>Contacts successfully synchronized with Telegram.</source>
<translation>Yhteystietojen synkronointi Telegramin kanssa onnistui.</translation> <translation>Yhteystietojen synkronointi Telegramin kanssa onnistui.</translation>
</message> </message>
<message>
<source>No contacts found.</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>NotificationManager</name> <name>NotificationManager</name>
@ -1766,6 +1777,14 @@
<source>Phone number: +%1</source> <source>Phone number: +%1</source>
<translation>Puhelinnumero: +%1</translation> <translation>Puhelinnumero: +%1</translation>
</message> </message>
<message>
<source>Contacts successfully synchronized with Telegram.</source>
<translation>Yhteystietojen synkronointi Telegramin kanssa onnistui.</translation>
</message>
<message>
<source>Synchronize Contacts with Telegram</source>
<translation>Synkronoi yhteystiedot Telegramin kanssa</translation>
</message>
</context> </context>
<context> <context>
<name>SponsoredMessage</name> <name>SponsoredMessage</name>

View file

@ -183,6 +183,10 @@
<source>Mute Chat</source> <source>Mute Chat</source>
<translation>Mettre la conversation en sourdine</translation> <translation>Mettre la conversation en sourdine</translation>
</message> </message>
<message>
<source>ID has been copied to the clipboard.</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>ChatInformationTabItemMembersGroups</name> <name>ChatInformationTabItemMembersGroups</name>
@ -491,6 +495,13 @@
<translation>Vous n&apos;avez aucune conversation.</translation> <translation>Vous n&apos;avez aucune conversation.</translation>
</message> </message>
</context> </context>
<context>
<name>ContactSync</name>
<message>
<source>Could not synchronize your contacts with Telegram.</source>
<translation>Impossible de synchroniser vos contacts avec Telegram.</translation>
</message>
</context>
<context> <context>
<name>CoverPage</name> <name>CoverPage</name>
<message> <message>
@ -1149,14 +1160,14 @@
<source>Synchronize Contacts with Telegram</source> <source>Synchronize Contacts with Telegram</source>
<translation>Synchroniser les contacts avec Telegram</translation> <translation>Synchroniser les contacts avec Telegram</translation>
</message> </message>
<message>
<source>Could not synchronize your contacts with Telegram.</source>
<translation>Impossible de synchroniser vos contacts avec Telegram.</translation>
</message>
<message> <message>
<source>Contacts successfully synchronized with Telegram.</source> <source>Contacts successfully synchronized with Telegram.</source>
<translation>Contacts synchronisés avec Telegram avec succès.</translation> <translation>Contacts synchronisés avec Telegram avec succès.</translation>
</message> </message>
<message>
<source>No contacts found.</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>NotificationManager</name> <name>NotificationManager</name>
@ -1765,6 +1776,14 @@
<source>Phone number: +%1</source> <source>Phone number: +%1</source>
<translation>Numéro de téléphone : +%1</translation> <translation>Numéro de téléphone : +%1</translation>
</message> </message>
<message>
<source>Contacts successfully synchronized with Telegram.</source>
<translation>Contacts synchronisés avec Telegram avec succès.</translation>
</message>
<message>
<source>Synchronize Contacts with Telegram</source>
<translation>Synchroniser les contacts avec Telegram</translation>
</message>
</context> </context>
<context> <context>
<name>SponsoredMessage</name> <name>SponsoredMessage</name>

View file

@ -180,6 +180,10 @@
<source>Mute Chat</source> <source>Mute Chat</source>
<translation>Csevegés némítása</translation> <translation>Csevegés némítása</translation>
</message> </message>
<message>
<source>ID has been copied to the clipboard.</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>ChatInformationTabItemMembersGroups</name> <name>ChatInformationTabItemMembersGroups</name>
@ -481,6 +485,13 @@
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context> </context>
<context>
<name>ContactSync</name>
<message>
<source>Could not synchronize your contacts with Telegram.</source>
<translation type="unfinished"></translation>
</message>
</context>
<context> <context>
<name>CoverPage</name> <name>CoverPage</name>
<message> <message>
@ -1132,11 +1143,11 @@
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<source>Could not synchronize your contacts with Telegram.</source> <source>Contacts successfully synchronized with Telegram.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<source>Contacts successfully synchronized with Telegram.</source> <source>No contacts found.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context> </context>
@ -1738,6 +1749,14 @@
<source>Phone number: +%1</source> <source>Phone number: +%1</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message>
<source>Contacts successfully synchronized with Telegram.</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Synchronize Contacts with Telegram</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>SponsoredMessage</name> <name>SponsoredMessage</name>

View file

@ -183,6 +183,10 @@
<source>Mute Chat</source> <source>Mute Chat</source>
<translation>Silenzia chat</translation> <translation>Silenzia chat</translation>
</message> </message>
<message>
<source>ID has been copied to the clipboard.</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>ChatInformationTabItemMembersGroups</name> <name>ChatInformationTabItemMembersGroups</name>
@ -491,6 +495,13 @@
<translation>Nessuna chat presente</translation> <translation>Nessuna chat presente</translation>
</message> </message>
</context> </context>
<context>
<name>ContactSync</name>
<message>
<source>Could not synchronize your contacts with Telegram.</source>
<translation type="unfinished">Sincronizzazione contatti con Telegram non riuscita</translation>
</message>
</context>
<context> <context>
<name>CoverPage</name> <name>CoverPage</name>
<message> <message>
@ -1149,14 +1160,14 @@
<source>Synchronize Contacts with Telegram</source> <source>Synchronize Contacts with Telegram</source>
<translation>Sincronizza contatti con Telegram</translation> <translation>Sincronizza contatti con Telegram</translation>
</message> </message>
<message>
<source>Could not synchronize your contacts with Telegram.</source>
<translation>Sincronizzazione contatti con Telegram non riuscita</translation>
</message>
<message> <message>
<source>Contacts successfully synchronized with Telegram.</source> <source>Contacts successfully synchronized with Telegram.</source>
<translation>Sincronizzazione contatti con Telegram completata</translation> <translation>Sincronizzazione contatti con Telegram completata</translation>
</message> </message>
<message>
<source>No contacts found.</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>NotificationManager</name> <name>NotificationManager</name>
@ -1765,6 +1776,14 @@
<source>Phone number: +%1</source> <source>Phone number: +%1</source>
<translation>Telefono: +%1</translation> <translation>Telefono: +%1</translation>
</message> </message>
<message>
<source>Contacts successfully synchronized with Telegram.</source>
<translation type="unfinished">Sincronizzazione contatti con Telegram completata</translation>
</message>
<message>
<source>Synchronize Contacts with Telegram</source>
<translation type="unfinished">Sincronizza contatti con Telegram</translation>
</message>
</context> </context>
<context> <context>
<name>SponsoredMessage</name> <name>SponsoredMessage</name>

View file

@ -186,6 +186,10 @@
<source>Mute Chat</source> <source>Mute Chat</source>
<translation>Wycisz czat</translation> <translation>Wycisz czat</translation>
</message> </message>
<message>
<source>ID has been copied to the clipboard.</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>ChatInformationTabItemMembersGroups</name> <name>ChatInformationTabItemMembersGroups</name>
@ -501,6 +505,13 @@
<translation>Nie masz jeszcze żadnych czatów.</translation> <translation>Nie masz jeszcze żadnych czatów.</translation>
</message> </message>
</context> </context>
<context>
<name>ContactSync</name>
<message>
<source>Could not synchronize your contacts with Telegram.</source>
<translation>Nie można zsynchonizaować kontaktów z Telegramem.</translation>
</message>
</context>
<context> <context>
<name>CoverPage</name> <name>CoverPage</name>
<message> <message>
@ -1167,14 +1178,14 @@
<source>Synchronize Contacts with Telegram</source> <source>Synchronize Contacts with Telegram</source>
<translation>Synchronizuj kontakty z Telegramem</translation> <translation>Synchronizuj kontakty z Telegramem</translation>
</message> </message>
<message>
<source>Could not synchronize your contacts with Telegram.</source>
<translation>Nie można zsynchonizaować kontaktów z Telegramem.</translation>
</message>
<message> <message>
<source>Contacts successfully synchronized with Telegram.</source> <source>Contacts successfully synchronized with Telegram.</source>
<translation>Synchronizacja kontaktów z Telegramem zakończona sukcesem.</translation> <translation>Synchronizacja kontaktów z Telegramem zakończona sukcesem.</translation>
</message> </message>
<message>
<source>No contacts found.</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>NotificationManager</name> <name>NotificationManager</name>
@ -1792,6 +1803,14 @@
<source>Phone number: +%1</source> <source>Phone number: +%1</source>
<translation>Numer telefonu: +%1</translation> <translation>Numer telefonu: +%1</translation>
</message> </message>
<message>
<source>Contacts successfully synchronized with Telegram.</source>
<translation>Synchronizacja kontaktów z Telegramem zakończona sukcesem.</translation>
</message>
<message>
<source>Synchronize Contacts with Telegram</source>
<translation>Synchronizuj kontakty z Telegramem</translation>
</message>
</context> </context>
<context> <context>
<name>SponsoredMessage</name> <name>SponsoredMessage</name>

View file

@ -186,6 +186,10 @@
<source>Mute Chat</source> <source>Mute Chat</source>
<translation>Выключить уведомления</translation> <translation>Выключить уведомления</translation>
</message> </message>
<message>
<source>ID has been copied to the clipboard.</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>ChatInformationTabItemMembersGroups</name> <name>ChatInformationTabItemMembersGroups</name>
@ -501,6 +505,13 @@
<translation>Тут пока ничего нет</translation> <translation>Тут пока ничего нет</translation>
</message> </message>
</context> </context>
<context>
<name>ContactSync</name>
<message>
<source>Could not synchronize your contacts with Telegram.</source>
<translation>Невозможно синхронизировать ваши контакты с Телеграм.</translation>
</message>
</context>
<context> <context>
<name>CoverPage</name> <name>CoverPage</name>
<message> <message>
@ -1170,14 +1181,14 @@
<source>Synchronize Contacts with Telegram</source> <source>Synchronize Contacts with Telegram</source>
<translation>Синхронизировать с Телеграм</translation> <translation>Синхронизировать с Телеграм</translation>
</message> </message>
<message>
<source>Could not synchronize your contacts with Telegram.</source>
<translation>Невозможно синхронизировать ваши контакты с Телеграм.</translation>
</message>
<message> <message>
<source>Contacts successfully synchronized with Telegram.</source> <source>Contacts successfully synchronized with Telegram.</source>
<translation>Контакты успешно синхронизированы с Телеграм.</translation> <translation>Контакты успешно синхронизированы с Телеграм.</translation>
</message> </message>
<message>
<source>No contacts found.</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>NotificationManager</name> <name>NotificationManager</name>
@ -1795,6 +1806,14 @@
<source>Phone number: +%1</source> <source>Phone number: +%1</source>
<translation>Ваш телефон: +%1</translation> <translation>Ваш телефон: +%1</translation>
</message> </message>
<message>
<source>Contacts successfully synchronized with Telegram.</source>
<translation>Контакты успешно синхронизированы с Телеграм.</translation>
</message>
<message>
<source>Synchronize Contacts with Telegram</source>
<translation>Синхронизировать с Телеграм</translation>
</message>
</context> </context>
<context> <context>
<name>SponsoredMessage</name> <name>SponsoredMessage</name>

View file

@ -186,6 +186,10 @@
<source>Mute Chat</source> <source>Mute Chat</source>
<translation>Umlčať čet</translation> <translation>Umlčať čet</translation>
</message> </message>
<message>
<source>ID has been copied to the clipboard.</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>ChatInformationTabItemMembersGroups</name> <name>ChatInformationTabItemMembersGroups</name>
@ -501,6 +505,13 @@
<translation>Nemáte žiadne čety.</translation> <translation>Nemáte žiadne čety.</translation>
</message> </message>
</context> </context>
<context>
<name>ContactSync</name>
<message>
<source>Could not synchronize your contacts with Telegram.</source>
<translation>Nemožno synchonizovať kontakty s Telegramom.</translation>
</message>
</context>
<context> <context>
<name>CoverPage</name> <name>CoverPage</name>
<message> <message>
@ -1167,14 +1178,14 @@
<source>Synchronize Contacts with Telegram</source> <source>Synchronize Contacts with Telegram</source>
<translation>Synchronizovať kontakty s Telegramom</translation> <translation>Synchronizovať kontakty s Telegramom</translation>
</message> </message>
<message>
<source>Could not synchronize your contacts with Telegram.</source>
<translation>Nemožno synchonizovať kontakty s Telegramom.</translation>
</message>
<message> <message>
<source>Contacts successfully synchronized with Telegram.</source> <source>Contacts successfully synchronized with Telegram.</source>
<translation>Kontakty boli úspešne synchronizované s Telegramom.</translation> <translation>Kontakty boli úspešne synchronizované s Telegramom.</translation>
</message> </message>
<message>
<source>No contacts found.</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>NotificationManager</name> <name>NotificationManager</name>
@ -1792,6 +1803,14 @@
<source>Phone number: +%1</source> <source>Phone number: +%1</source>
<translation>Telefónne číslo: +%1</translation> <translation>Telefónne číslo: +%1</translation>
</message> </message>
<message>
<source>Contacts successfully synchronized with Telegram.</source>
<translation>Kontakty boli úspešne synchronizované s Telegramom.</translation>
</message>
<message>
<source>Synchronize Contacts with Telegram</source>
<translation>Synchronizovať kontakty s Telegramom</translation>
</message>
</context> </context>
<context> <context>
<name>SponsoredMessage</name> <name>SponsoredMessage</name>

View file

@ -183,6 +183,10 @@
<source>Mute Chat</source> <source>Mute Chat</source>
<translation>Stäng av chatten</translation> <translation>Stäng av chatten</translation>
</message> </message>
<message>
<source>ID has been copied to the clipboard.</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>ChatInformationTabItemMembersGroups</name> <name>ChatInformationTabItemMembersGroups</name>
@ -491,6 +495,13 @@
<translation>Du har inga chattar än.</translation> <translation>Du har inga chattar än.</translation>
</message> </message>
</context> </context>
<context>
<name>ContactSync</name>
<message>
<source>Could not synchronize your contacts with Telegram.</source>
<translation>Kunde inte synkronisera dina kontakter med Telegram.</translation>
</message>
</context>
<context> <context>
<name>CoverPage</name> <name>CoverPage</name>
<message> <message>
@ -1149,14 +1160,14 @@
<source>Synchronize Contacts with Telegram</source> <source>Synchronize Contacts with Telegram</source>
<translation>Synkronisera kontakter med Telegram</translation> <translation>Synkronisera kontakter med Telegram</translation>
</message> </message>
<message>
<source>Could not synchronize your contacts with Telegram.</source>
<translation>Kunde inte synkronisera dina kontakter med Telegram.</translation>
</message>
<message> <message>
<source>Contacts successfully synchronized with Telegram.</source> <source>Contacts successfully synchronized with Telegram.</source>
<translation>Kontakter synkroniserade med Telegram.</translation> <translation>Kontakter synkroniserade med Telegram.</translation>
</message> </message>
<message>
<source>No contacts found.</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>NotificationManager</name> <name>NotificationManager</name>
@ -1765,6 +1776,14 @@
<source>Phone number: +%1</source> <source>Phone number: +%1</source>
<translation>Telefonnummer: +%1</translation> <translation>Telefonnummer: +%1</translation>
</message> </message>
<message>
<source>Contacts successfully synchronized with Telegram.</source>
<translation>Kontakter synkroniserade med Telegram.</translation>
</message>
<message>
<source>Synchronize Contacts with Telegram</source>
<translation>Synkronisera kontakter med Telegram</translation>
</message>
</context> </context>
<context> <context>
<name>SponsoredMessage</name> <name>SponsoredMessage</name>

View file

@ -180,6 +180,10 @@
<source>Mute Chat</source> <source>Mute Chat</source>
<translation></translation> <translation></translation>
</message> </message>
<message>
<source>ID has been copied to the clipboard.</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>ChatInformationTabItemMembersGroups</name> <name>ChatInformationTabItemMembersGroups</name>
@ -481,6 +485,13 @@
<translation></translation> <translation></translation>
</message> </message>
</context> </context>
<context>
<name>ContactSync</name>
<message>
<source>Could not synchronize your contacts with Telegram.</source>
<translation type="unfinished"> Telegram </translation>
</message>
</context>
<context> <context>
<name>CoverPage</name> <name>CoverPage</name>
<message> <message>
@ -1132,14 +1143,14 @@
<source>Synchronize Contacts with Telegram</source> <source>Synchronize Contacts with Telegram</source>
<translation> Telegram </translation> <translation> Telegram </translation>
</message> </message>
<message>
<source>Could not synchronize your contacts with Telegram.</source>
<translation> Telegram </translation>
</message>
<message> <message>
<source>Contacts successfully synchronized with Telegram.</source> <source>Contacts successfully synchronized with Telegram.</source>
<translation> Telegram </translation> <translation> Telegram </translation>
</message> </message>
<message>
<source>No contacts found.</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>NotificationManager</name> <name>NotificationManager</name>
@ -1739,6 +1750,14 @@
<source>Phone number: +%1</source> <source>Phone number: +%1</source>
<translation>: +%1</translation> <translation>: +%1</translation>
</message> </message>
<message>
<source>Contacts successfully synchronized with Telegram.</source>
<translation> Telegram </translation>
</message>
<message>
<source>Synchronize Contacts with Telegram</source>
<translation> Telegram </translation>
</message>
</context> </context>
<context> <context>
<name>SponsoredMessage</name> <name>SponsoredMessage</name>

View file

@ -183,6 +183,10 @@
<source>Mute Chat</source> <source>Mute Chat</source>
<translation type="unfinished">Mute Chat</translation> <translation type="unfinished">Mute Chat</translation>
</message> </message>
<message>
<source>ID has been copied to the clipboard.</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>ChatInformationTabItemMembersGroups</name> <name>ChatInformationTabItemMembersGroups</name>
@ -491,6 +495,13 @@
<translation>You don&apos;t have any chats yet.</translation> <translation>You don&apos;t have any chats yet.</translation>
</message> </message>
</context> </context>
<context>
<name>ContactSync</name>
<message>
<source>Could not synchronize your contacts with Telegram.</source>
<translation type="unfinished"></translation>
</message>
</context>
<context> <context>
<name>CoverPage</name> <name>CoverPage</name>
<message> <message>
@ -1150,11 +1161,11 @@
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<source>Could not synchronize your contacts with Telegram.</source> <source>Contacts successfully synchronized with Telegram.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<source>Contacts successfully synchronized with Telegram.</source> <source>No contacts found.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context> </context>
@ -1765,6 +1776,14 @@
<source>Phone number: +%1</source> <source>Phone number: +%1</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message>
<source>Contacts successfully synchronized with Telegram.</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Synchronize Contacts with Telegram</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>SponsoredMessage</name> <name>SponsoredMessage</name>