Skip to content

Commit

Permalink
feat: Open Saved Messages on long click on search top button
Browse files Browse the repository at this point in the history
Co-authored-by: 23rd <[email protected]>
  • Loading branch information
omg-xtao and 23rd committed Feb 13, 2024
1 parent c36138e commit 5892af3
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3207,6 +3207,15 @@ public boolean canToggleSearch() {
optionsItem.toggleSubMenu();
});
}

// na: Added ability to open Saved Messages on long click on search top button
searchItem.setOnLongClickListener(v -> {
Bundle args = new Bundle();
args.putLong("user_id", getUserConfig().getClientUserId());
presentFragment(new ChatActivity(args));
return true;
});

searchItem.setSearchFieldHint(LocaleController.getString("Search", R.string.Search));
searchItem.setContentDescription(LocaleController.getString("Search", R.string.Search));
if (onlySelect) {
Expand Down

0 comments on commit 5892af3

Please sign in to comment.