Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Enhance Return Function for Navigation to Last Viewed Chat #354

Open
honglin-signo opened this issue Oct 6, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@honglin-signo
Copy link

Summary:
I would like to enhance the return function in the Telegram web app to allow users to navigate back to the last viewed chat when clicking the return button on the top navigation bar.

Current Behavior:
After reviewing the source code, it seems that the original design only supports the return function in specific cases (e.g., navigating back to Saved Chats, Search, or Media Playing).

Questions:
Could you please clarify the original design logic behind the return functionality and why it was limited to these cases (Saved Chats, Search, Media)?

Is there any design rationale that might have excluded returning to the last viewed chat?

Enhancement Proposal: I’m considering implementing a feature where the return button on the top navigation returns the user to the last viewed chat. I’ve identified two potential ways to achieve this:

Using an API call to fetch the last viewed chat id.
Caching the previous chat state locally.
However, both approaches may not provide the best performance. Would you be able to suggest a more efficient way to get previous chat id?

Any guidance or insights would be much appreciated. Thanks!

@honglin-signo honglin-signo added the enhancement New feature or request label Oct 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant