This commit is contained in:
otsmr 2025-03-27 15:36:44 +01:00
parent b80cdc0d03
commit 681c6517ae

View file

@ -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);
} }
} }