Skip to content

Commit

Permalink
Disable Space related functions + invite new contact
Browse files Browse the repository at this point in the history
  • Loading branch information
hoangdat committed Jun 23, 2023
1 parent afb456e commit 4080421
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 26 deletions.
12 changes: 6 additions & 6 deletions lib/pages/chat_list/chat_list_header.dart
Original file line number Diff line number Diff line change
Expand Up @@ -106,12 +106,12 @@ class ChatListHeader extends StatelessWidget implements PreferredSizeWidget {
),
child: ClientChooserButton(controller),
),
if (selectMode == SelectMode.select && controller.spaces.isNotEmpty)
IconButton(
tooltip: L10n.of(context)!.addToSpace,
icon: const Icon(Icons.workspaces_outlined),
onPressed: controller.addToSpace,
),
// if (selectMode == SelectMode.select && controller.spaces.isNotEmpty)
// IconButton(
// tooltip: L10n.of(context)!.addToSpace,
// icon: const Icon(Icons.workspaces_outlined),
// onPressed: controller.addToSpace,
// ),
if (selectMode == SelectMode.select)
IconButton(
tooltip: L10n.of(context)!.toggleUnread,
Expand Down
40 changes: 20 additions & 20 deletions lib/pages/chat_list/client_chooser_button.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,26 +28,26 @@ class ClientChooserButton extends StatelessWidget {
: 1,
);
return <PopupMenuEntry<Object>>[
PopupMenuItem(
value: SettingsAction.newStory,
child: Row(
children: [
const Icon(Icons.camera_outlined),
const SizedBox(width: 18),
Text(L10n.of(context)!.yourStory),
],
),
),
PopupMenuItem(
value: SettingsAction.invite,
child: Row(
children: [
Icon(Icons.adaptive.share_outlined),
const SizedBox(width: 18),
Text(L10n.of(context)!.inviteContact),
],
),
),
// PopupMenuItem(
// value: SettingsAction.newStory,
// child: Row(
// children: [
// const Icon(Icons.camera_outlined),
// const SizedBox(width: 18),
// Text(L10n.of(context)!.yourStory),
// ],
// ),
// ),
// PopupMenuItem(
// value: SettingsAction.invite,
// child: Row(
// children: [
// Icon(Icons.adaptive.share_outlined),
// const SizedBox(width: 18),
// Text(L10n.of(context)!.inviteContact),
// ],
// ),
// ),
PopupMenuItem(
value: SettingsAction.archive,
child: Row(
Expand Down

0 comments on commit 4080421

Please sign in to comment.