Merge pull request 'dont show placeholder when contact offline' (#118) from erinn23 into trunk
continuous-integration/drone/push Build is passing Details

Reviewed-on: #118
This commit is contained in:
Sarah Jamie Lewis 2021-07-14 13:39:10 -07:00
commit 79abd45a83
1 changed files with 1 additions and 1 deletions

View File

@ -192,7 +192,7 @@ class _MessageViewState extends State<MessageView> {
onFieldSubmitted: _sendMessage,
enabled: !isOffline,
decoration: InputDecoration(
hintText: AppLocalizations.of(context)!.placeholderEnterMessage,
hintText: isOffline ? "" : AppLocalizations.of(context)!.placeholderEnterMessage,
hintStyle: TextStyle(color: Provider.of<Settings>(context).theme.altTextColor()),
enabledBorder: InputBorder.none,
focusedBorder: InputBorder.none,