Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

Commit

Permalink
Import PR 3500 from ekager
Browse files Browse the repository at this point in the history
  • Loading branch information
Mihai Tabara authored and st3fan committed Jun 15, 2019
1 parent 31e26a2 commit 494a78d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/src/main/java/org/mozilla/fenix/home/HomeFragment.kt
Original file line number Diff line number Diff line change
Expand Up @@ -573,11 +573,10 @@ class HomeFragment : Fragment(), CoroutineScope, AccountObserver {
getManagedEmitter<SessionControlChange>().onNext(SessionControlChange.TabsChange(listOf()))

val deleteOperation: (suspend () -> Unit) = {
sessionManager.filteredSessions(isPrivate) { it.id == pendingSessionDeletion?.sessionId }.forEach {
sessionManager.sessions.filter { it.private == isPrivate }.forEach {
useCases.removeTab.invoke(it)
}
}

deleteAllSessionsJob = deleteOperation

allowUndo(
Expand Down

0 comments on commit 494a78d

Please sign in to comment.