Show character remaining counter when compsing message

This commit is contained in:
Moez Bhatti
2018-03-12 15:25:38 -07:00
parent 154389b5f1
commit 6d6b3fbf77
4 changed files with 58 additions and 16 deletions
@@ -219,6 +219,9 @@ class ComposeActivity : QkThemedActivity<ComposeViewModel>(), ComposeView {
if (title != state.title) title = state.title
counter.text = state.remaining
counter.setVisible(counter.text.isNotBlank())
send.isEnabled = state.canSend
sendIcon.isEnabled = state.canSend
}