From 296ddb5e11f8567a99e88c40b1f857fdb2787ed8 Mon Sep 17 00:00:00 2001 From: zjs81 Date: Sun, 22 Nov 2026 17:52:05 -0700 Subject: [PATCH] Move chess entry into the composer's + menu --- documentation/games.md | 2 +- lib/screens/channel_chat_screen.dart | 16 +++++++--------- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/documentation/games.md b/documentation/games.md index c68e5632..dd7d0b5b 100644 --- a/documentation/games.md +++ b/documentation/games.md @@ -9,7 +9,7 @@ Play chess with someone on a channel, or watch other people's games. Moves go ov ## Start a game -Open a channel, tap **⋮**, then **Chess games**. The menu shows how many games and invites are open on that channel. +Open a channel, tap **+** next to the message box, then **Chess games**. The entry shows how many games and invites are open on that channel. - **Challenge someone**: pick a person recently heard on this channel. Only a radio with that name can accept. Their phone shows a notification. - **Post an open invite**: anyone on the channel can accept. If two people accept at the same time, the inviter's phone picks the first one it heard and tells everyone; the other person keeps watching. diff --git a/lib/screens/channel_chat_screen.dart b/lib/screens/channel_chat_screen.dart index f08a4a66..8b5d26de 100644 --- a/lib/screens/channel_chat_screen.dart +++ b/lib/screens/channel_chat_screen.dart @@ -595,8 +595,6 @@ class _ChannelChatScreenState extends State onSelected: (value) { final connector = context.read(); switch (value) { - case 'games': - showChessGamesSheet(context, widget.channel); case 'messageFilter': _toggleChannelFiltering(); case 'notifications': @@ -639,13 +637,6 @@ class _ChannelChatScreenState extends State .getChannelNotificationMode(muteKey); final readOnly = isRadioReadOnly(context.read()); return [ - PopupMenuItem( - value: 'games', - child: _menuRow( - Icons.sports_esports_outlined, - chessMenuLabel(context, widget.channel), - ), - ), if (_messageFilter case final filter? when filter.settings.enabled) PopupMenuItem( value: 'messageFilter', @@ -2918,6 +2909,11 @@ class _ChannelChatScreenState extends State icon: Icons.person_add_alt, label: context.l10n.contactShare_shareAction, ), + ChatComposerAction( + id: 'games', + icon: Icons.sports_esports_outlined, + label: chessMenuLabel(context, widget.channel), + ), ]; }, onAction: (action) { @@ -2937,6 +2933,8 @@ class _ChannelChatScreenState extends State _textController, focusNode: _textFieldFocusNode, ); + case 'games': + showChessGamesSheet(context, widget.channel); } }, );