removed sailfish contact sync support

This commit is contained in:
Denis Fedoseev 2023-07-09 14:31:53 +03:00
parent 83f0c54f8b
commit f3dd33c4ca
2 changed files with 20 additions and 20 deletions

View file

@ -17,28 +17,28 @@
along with Fernschreiber. If not, see <http://www.gnu.org/licenses/>. along with Fernschreiber. If not, see <http://www.gnu.org/licenses/>.
*/ */
import QtQuick 2.0 import QtQuick 2.0
import org.nemomobile.contacts 1.0 //import org.nemomobile.contacts 1.0
Item { Item {
signal syncError(); // signal syncError();
function synchronize() { // function synchronize() {
if (peopleModel.count === 0) { // if (peopleModel.count === 0) {
appNotification.show(qsTr("Could not synchronize your contacts with Telegram.")); // appNotification.show(qsTr("Could not synchronize your contacts with Telegram."));
syncError(); // syncError();
} else { // } else {
contactsModel.startImportingContacts(); // contactsModel.startImportingContacts();
for (var i = 0; i < peopleModel.count; i++ ) { // for (var i = 0; i < peopleModel.count; i++ ) {
contactsModel.importContact(peopleModel.get(i)); // contactsModel.importContact(peopleModel.get(i));
} // }
contactsModel.stopImportingContacts(); // contactsModel.stopImportingContacts();
} // }
} // }
PeopleModel { // PeopleModel {
id: peopleModel // id: peopleModel
requiredProperty: PeopleModel.PhoneNumberRequired // requiredProperty: PeopleModel.PhoneNumberRequired
} // }
} }

View file

@ -12,14 +12,14 @@ Name: harbour-fernschreiber
Summary: Fernschreiber is a Telegram client for Sailfish OS Summary: Fernschreiber is a Telegram client for Sailfish OS
Version: 0.17 Version: 0.17
Release: 1 Release: 2
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 #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)