diff --git a/lib/pages/chat/chat_input_row.dart b/lib/pages/chat/chat_input_row.dart index 88860a7..0a8fd4b 100644 --- a/lib/pages/chat/chat_input_row.dart +++ b/lib/pages/chat/chat_input_row.dart @@ -27,6 +27,19 @@ class ChatInputRow extends StatelessWidget { } const height = 48.0; + if (!controller.room.canSendDefaultMessages) { + return Center( + child: Padding( + padding: const EdgeInsets.all(12.0), + child: Text( + L10n.of(context).noSendPermission, + style: theme.textTheme.bodySmall, + textAlign: TextAlign.center, + ), + ), + ); + } + if (!controller.room.otherPartyCanReceiveMessages) { return Center( child: Padding(