feat(ui): Prevent removing a pseudo contact

This commit is contained in:
PapaTutuWawa 2022-12-12 12:37:21 +01:00
parent 80a517beaa
commit 64c3796429

View File

@ -72,6 +72,9 @@ class NewConversationPage extends StatelessWidget {
final item = state.roster[index - 2];
return Dismissible(
key: ValueKey('roster;${item.jid}'),
direction: item.pseudoRosterItem ?
DismissDirection.none :
DismissDirection.horizontal,
onDismissed: (_) => context.read<NewConversationBloc>().add(
NewConversationRosterItemRemovedEvent(item.jid),
),