Add channel slot detection fix

This commit is contained in:
Janez T
2026-03-11 15:30:31 +01:00
parent 2d23328ad0
commit 467371946d
2 changed files with 71 additions and 20 deletions

View File

@@ -366,13 +366,18 @@ class ContactTile extends StatelessWidget {
contact.isChannel ? l10n.deleteChannel : l10n.deleteContact,
style: const TextStyle(color: Colors.red),
),
onTap: () {
onTap: () async {
Navigator.pop(sheetContext);
if (contact.isChannel) {
_showDeleteChannelDialog(context, contact);
} else {
_showDeleteConfirmation(context, contact);
}
await Future<void>.delayed(Duration.zero);
if (!context.mounted) return;
WidgetsBinding.instance.addPostFrameCallback((_) {
if (!context.mounted) return;
if (contact.isChannel) {
_showDeleteChannelDialog(context, contact);
} else {
_showDeleteConfirmation(context, contact);
}
});
},
),
],