Update chat-only mode button copy

This commit is contained in:
Tommy Chow 2024-08-11 17:36:47 -07:00
parent 76fa2277a0
commit a0c945a8d4

View file

@ -214,7 +214,13 @@ class ChatDetails extends StatelessWidget {
),
ListTile(
leading: const Icon(Icons.chat_rounded),
title: const Text('Toggle chat-only mode'),
title: Observer(
builder: (context) {
return Text(
'${chatStore.settings.showVideo ? 'Enter' : 'Exit'} chat-only mode',
);
},
),
onTap: () =>
chatStore.settings.showVideo = !chatStore.settings.showVideo,
),