Fix unarchive actions from conversation search.

Fixes #14640
This commit is contained in:
Greyson Parrelli
2026-03-04 12:06:30 -05:00
parent 4e3ef19c1f
commit 622d9c909f

View File

@@ -1285,7 +1285,7 @@ public class ConversationListFragment extends MainFragment implements Conversati
view.setSelected(true);
Collection<Long> id = Collections.singleton(conversation.getThreadRecord().getThreadId());
Set<Long> id = Collections.singleton(conversation.getThreadRecord().getThreadId());
List<ActionItem> items = new ArrayList<>();
@@ -1317,7 +1317,7 @@ public class ConversationListFragment extends MainFragment implements Conversati
}
if (conversation.getThreadRecord().isArchived()) {
items.add(new ActionItem(R.drawable.symbol_archive_up_24, getResources().getString(R.string.ConversationListFragment_unarchive), () -> handleArchive(id)));
items.add(new ActionItem(R.drawable.symbol_archive_up_24, getResources().getString(R.string.ConversationListFragment_unarchive), () -> handleUnarchive(id)));
} else {
if (!isFromSearch) {
if (viewModel.getCurrentFolder().getFolderType() == ChatFolderRecord.FolderType.ALL &&