@@ -548,19 +548,18 @@ class _ChannelListViewState extends State<ChannelListView> {
|
|||||||
color: backgroundColor,
|
color: backgroundColor,
|
||||||
iconWidget: StreamSvgIcon.delete(
|
iconWidget: StreamSvgIcon.delete(
|
||||||
color: chatThemeData.colorTheme.accentError,
|
color: chatThemeData.colorTheme.accentError,
|
||||||
),
|
),
|
||||||
onTap: widget.onDeletePressed != null
|
onTap: widget.onDeletePressed != null
|
||||||
? () {
|
? () {
|
||||||
widget.onDeletePressed!(channel);
|
widget.onDeletePressed?.call(channel);
|
||||||
}
|
}
|
||||||
: () async {
|
: () async {
|
||||||
final res = await showConfirmationDialog(
|
final res = await showConfirmationDialog(
|
||||||
context,
|
context,
|
||||||
title:
|
title: context.translations.deleteConversationLabel,
|
||||||
context.translations.deleteConversationLabel,
|
question:
|
||||||
question: context
|
context.translations.deleteConversationQuestion,
|
||||||
.translations.deleteConversationQuestion,
|
okText: context.translations.deleteLabel,
|
||||||
okText: context.translations.deleteLabel,
|
|
||||||
cancelText: context.translations.cancelLabel,
|
cancelText: context.translations.cancelLabel,
|
||||||
icon: StreamSvgIcon.delete(
|
icon: StreamSvgIcon.delete(
|
||||||
color: chatThemeData.colorTheme.accentError,
|
color: chatThemeData.colorTheme.accentError,
|
||||||
|
|||||||
Reference in New Issue
Block a user