fix: Block users
This commit is contained in:
parent
43e8e0f0d4
commit
f1b2040edb
6 changed files with 24 additions and 30 deletions
|
|
@ -237,7 +237,10 @@ class UserBottomSheetController extends State<UserBottomSheet> {
|
|||
widget.outerContext.go('/rooms/$roomId');
|
||||
break;
|
||||
case UserBottomSheetAction.ignore:
|
||||
context.go('/rooms/settings/security/ignorelist');
|
||||
Navigator.of(context).pop();
|
||||
final userId = user?.id ?? widget.profile?.userId;
|
||||
widget.outerContext
|
||||
.go('/rooms/settings/security/ignorelist', extra: userId);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -93,6 +93,7 @@ class UserBottomSheetView extends StatelessWidget {
|
|||
padding: const EdgeInsets.only(right: 8.0),
|
||||
child: IconButton(
|
||||
icon: const Icon(Icons.block_outlined),
|
||||
tooltip: L10n.of(context)!.block,
|
||||
onPressed: () => controller
|
||||
.participantAction(UserBottomSheetAction.ignore),
|
||||
),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue