dont show placeholder when contact offline #118

Merged
sarah merged 2 commits from erinn23 into trunk 2021-07-14 20:39:11 +00:00
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,