feat: show message when no word selected (#1479)

pull/1593/head
ggurdin 10 months ago committed by GitHub
parent 5588d8ec16
commit f9dce6fc11
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -4659,7 +4659,7 @@
"myBaseLanguage": "My base language", "myBaseLanguage": "My base language",
"publicProfileTitle": "Allow my profile to be found in search", "publicProfileTitle": "Allow my profile to be found in search",
"publicProfileDesc": "By enabling this option, I confirm that I am of legal age in my country of residence", "publicProfileDesc": "By enabling this option, I confirm that I am of legal age in my country of residence",
"clickWordsInstructions": "Click on individual words for more activities.", "clickWordsInstructions": "Click on a word or the buttons below to learn more",
"chooseBestDefinition": "Choose the best definition", "chooseBestDefinition": "Choose the best definition",
"meaningSectionHeader": "Meaning:", "meaningSectionHeader": "Meaning:",
"formSectionHeader": "Forms used in chats:", "formSectionHeader": "Forms used in chats:",

@ -105,10 +105,9 @@ class MessageToolbar extends StatelessWidget {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
if (overlayController.toolbarMode == MessageMode.noneSelected || if (![MessageTypes.Text, MessageTypes.Audio].contains(
![MessageTypes.Text, MessageTypes.Audio].contains( pangeaMessageEvent.event.messageType,
pangeaMessageEvent.event.messageType, )) {
)) {
return const SizedBox(); return const SizedBox();
} }

Loading…
Cancel
Save