mirror of
https://github.com/twonlyapp/twonly-app.git
synced 2026-01-17 03:28:40 +00:00
fix #69
This commit is contained in:
parent
b80cdc0d03
commit
681c6517ae
1 changed files with 1 additions and 15 deletions
|
|
@ -29,20 +29,6 @@ class _PrivacyViewBlockUsers extends State<PrivacyViewBlockUsers> {
|
||||||
setState(() {});
|
setState(() {});
|
||||||
}
|
}
|
||||||
|
|
||||||
// Future _filterUsers(String query) async {
|
|
||||||
// lastQuery = query;
|
|
||||||
// if (query.isEmpty) {
|
|
||||||
// filteredUsers = allUsers;
|
|
||||||
// setState(() {});
|
|
||||||
// return;
|
|
||||||
// }
|
|
||||||
// filteredUsers = allUsers
|
|
||||||
// .where((user) =>
|
|
||||||
// user.displayName.toLowerCase().contains(query.toLowerCase()))
|
|
||||||
// .toList();
|
|
||||||
// setState(() {});
|
|
||||||
// }
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
|
|
@ -104,7 +90,7 @@ class UserList extends StatelessWidget {
|
||||||
|
|
||||||
Future block(BuildContext context, int userId, bool? value) async {
|
Future block(BuildContext context, int userId, bool? value) async {
|
||||||
if (value != null) {
|
if (value != null) {
|
||||||
final update = ContactsCompanion(blocked: Value(!value));
|
final update = ContactsCompanion(blocked: Value(value));
|
||||||
await twonlyDatabase.contactsDao.updateContact(userId, update);
|
await twonlyDatabase.contactsDao.updateContact(userId, update);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue