Remove unnecessary mapNotNull

This commit is contained in:
Moez Bhatti
2018-03-28 18:09:57 -04:00
parent 84f02fc03f
commit e8d86364b0
@@ -106,7 +106,7 @@ class QkReplyViewModel(intent: Intent) : QkViewModel<QkReplyView, QkReplyState>(
view.menuItemIntent
.filter { id -> id == R.id.view }
.withLatestFrom(conversation, { _, conversation -> conversation })
.mapNotNull { conversation -> conversation.id }
.map { conversation -> conversation.id }
.doOnNext { threadId -> navigator.showConversation(threadId) }
.autoDisposable(view.scope())
.subscribe { view.finish() }