princekhunt / privateping

PrivatePing is a secure messaging application built on Python's Django framework, providing end-to-end encryption for messages exchanged between users.
https://privateping.bytespot.tech
MIT License
124 stars 30 forks source link

Prevent Multiple Tab of Chat Page #17

Open princekhunt opened 2 weeks ago

princekhunt commented 2 weeks ago

Is your feature request related to a problem? Please describe. Users are currently able to open the chat page in multiple tabs, which leads to conflicts and inconsistencies in the chat.

Describe the solution you'd like Implement a detection mechanism to check if the user already has the chat page open in another tab. If a user attempts to open the chat page in a second tab, display a toast notification or error message indicating that the chat page is already open.

Additional Context

  1. This feature will help ensure a seamless and consistent user experience by preventing conflicting interactions within the chat page.
  2. Consider using local storage or session storage to track the state of the chat page across tabs.