Show archived messages from search

This commit is contained in:
M66B 2021-12-30 09:31:12 +01:00
parent 3ae331578f
commit da6ec54669
1 changed files with 3 additions and 1 deletions

View File

@ -3554,6 +3554,8 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
.putExtra("id", message.id));
properties.setValue("selected", message.id, true);
} else {
boolean filter_archive = !(viewType == ViewType.SEARCH ||
EntityFolder.ARCHIVE.equals(message.folderType));
final LocalBroadcastManager lbm = LocalBroadcastManager.getInstance(context);
final Intent viewThread = new Intent(ActivityView.ACTION_VIEW_THREAD)
.putExtra("account", message.account)
@ -3561,7 +3563,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
.putExtra("thread", message.thread)
.putExtra("id", message.id)
.putExtra("lpos", getAdapterPosition())
.putExtra("filter_archive", !EntityFolder.ARCHIVE.equals(message.folderType))
.putExtra("filter_archive", filter_archive)
.putExtra("found", viewType == ViewType.SEARCH)
.putExtra("searched", searched);