Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0a4658e0 authored by narinder Rana's avatar narinder Rana
Browse files

remove comment and refine code

parent 803b307e
Loading
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -110,12 +110,6 @@ class MainActivity : QkThemedActivity(), MainView {
                invite.clicks().map { NavItem.INVITE }))
    }
    override val optionsItemIntent: Subject<Int> = PublishSubject.create()
//    override val plusBannerIntent: Observable<*>
//        get() = TODO("Not yet implemented")
//    override val dismissRatingIntent: Observable<*>
//        get() = TODO("Not yet implemented")
//    override val rateIntent: Observable<*>
//        get() = TODO("Not yet implemented")
    override val conversationsSelectedIntent by lazy { conversationsAdapter.selectionChanges }
    override val confirmDeleteIntent: Subject<List<Long>> = PublishSubject.create()
    override val swipeConversationIntent by lazy { itemTouchCallback.swipes }
+0 −3
Original line number Diff line number Diff line
@@ -33,9 +33,6 @@ interface MainView : QkView<MainState> {
    val homeIntent: Observable<*>
    val navigationIntent: Observable<NavItem>
    val optionsItemIntent: Observable<Int>
//    val plusBannerIntent: Observable<*>
//    val dismissRatingIntent: Observable<*>
//    val rateIntent: Observable<*>
    val conversationsSelectedIntent: Observable<List<Long>>
    val confirmDeleteIntent: Observable<List<Long>>
    val swipeConversationIntent: Observable<Pair<Long, Int>>
+0 −18
Original line number Diff line number Diff line
@@ -368,24 +368,6 @@ class MainViewModel @Inject constructor(
                .autoDisposable(view.scope())
                .subscribe()

//        view.plusBannerIntent
//                .autoDisposable(view.scope())
//                .subscribe {
//                    newState { copy(drawerOpen = false) }
//                    navigator.showQksmsPlusActivity("main_banner")
//                }
//
//        view.rateIntent
//                .autoDisposable(view.scope())
//                .subscribe {
//                    navigator.showRating()
//                    ratingManager.rate()
//                }
//
//        view.dismissRatingIntent
//                .autoDisposable(view.scope())
//                .subscribe { ratingManager.dismiss() }

        view.conversationsSelectedIntent
                .withLatestFrom(state) { selection, state ->
                    val conversations = selection.mapNotNull(conversationRepo::getConversation)