Skip to content

Commit

Permalink
Fix not showing "non-trashed" banner
Browse files Browse the repository at this point in the history
MAILANDR-1824
  • Loading branch information
Adam Jodlowski committed Aug 13, 2024
1 parent 1cd09d1 commit b99cc16
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class TrashedMessagesBannerReducer @Inject constructor() {

private fun reduceMessagesData(operation: ConversationDetailEvent.MessagesData) = with(operation) {
when {
filterByLocation == Trash.labelId && messagesLabelIds.none { it.value.contains(Trash.labelId) } -> {
filterByLocation == Trash.labelId && messagesLabelIds.any { it.value.contains(Trash.labelId).not() } -> {
when {
shouldHideMessagesBasedOnTrashFilter -> TrashedMessagesBannerState.Shown(
TrashedMessagesBannerUiModel(R.string.non_trashed_messages_banner, R.string.show)
Expand Down

0 comments on commit b99cc16

Please sign in to comment.