m. removing commented code
This commit is contained in:
parent
98d0e56475
commit
1ad7a607cf
|
@ -95,27 +95,6 @@ class ContactListState extends ChangeNotifier {
|
|||
List<ContactInfoState> _contacts = [];
|
||||
int get num => _contacts.length;
|
||||
|
||||
// ContactListState(Cwtch cwtch, String profileOnion) {
|
||||
// cwtch.GetContacts(profileOnion).then((jsonStr) {
|
||||
// if (jsonStr == null) return;
|
||||
//
|
||||
// print("contacts: " + jsonStr);
|
||||
// List<dynamic> contacts = jsonDecode(jsonStr);
|
||||
// contacts.forEach((c) {
|
||||
// add(ContactInfoState(
|
||||
// profileOnion: profileOnion,
|
||||
// onion: c["onion"],
|
||||
// nickname: c["name"],
|
||||
// isGroup: false,
|
||||
// isInvitation: false,
|
||||
// isBlocked: false,
|
||||
// status: c["status"],
|
||||
// imagePath: "",
|
||||
// ));
|
||||
// });
|
||||
// });
|
||||
// }
|
||||
|
||||
void addAll(Iterable<ContactInfoState> newContacts) {
|
||||
_contacts.addAll(newContacts);
|
||||
notifyListeners();
|
||||
|
|
Loading…
Reference in New Issue