Close qk reply when there are no messages

This commit is contained in:
Moez Bhatti
2018-04-01 18:47:52 -04:00
parent bb38e3194b
commit 531f5b0525
3 changed files with 43 additions and 12 deletions
@@ -106,6 +106,10 @@ class QkReplyActivity : QkThemedActivity<QkReplyViewModel>(), QkReplyView {
}
override fun render(state: QkReplyState) {
if (state.hasError) {
finish()
}
threadId.onNext(state.data?.first?.id ?: 0)
title = state.title