Skip to content

Commit

Permalink
fix: archived chat at drawer binded with wrong activity
Browse files Browse the repository at this point in the history
Signed-off-by: Next Alone <12210746+NextAlone@users.noreply.github.com>
  • Loading branch information
NextAlone committed May 13, 2024
1 parent 9ec1d01 commit 305d169
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ private void resetItems() {
items.add(new Item(11, LocaleController.getString("SavedMessages", R.string.SavedMessages), savedIcon));
}
if (Config.showArchivedChats) {
items.add(new Item(17, LocaleController.getString("ArchivedChats", R.string.ArchivedChats), R.drawable.msg_archive));
items.add(new Item(18, LocaleController.getString("ArchivedChats", R.string.ArchivedChats), R.drawable.msg_archive));
}
items.add(new Item(8, LocaleController.getString("Settings", R.string.Settings), settingsIcon));
// items.add(null); // divider
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,7 @@ public boolean drawChild(Canvas canvas, View child, long drawingTime) {
args.putLong("dialog_id", UserConfig.getInstance(currentAccount).getClientUserId());
args.putInt("type", MediaActivity.TYPE_STORIES);
presentFragment(new MediaActivity(args, null));
} else if (id == 17) {
} else if (id == 18) {
Bundle args = new Bundle();
args.putInt("folderId", 1);
args.putBoolean("onlySelect", false);
Expand Down

0 comments on commit 305d169

Please sign in to comment.