tweb
tweb copied to clipboard
[BUG] Messages in the active chat are marked as read even when tab is not focused
Describe the bug Messages in the currently open chat are marked as read even when the tab is not in focus. This means that also no notifications sounds are produced for the messages, since the client thinks the user has read them. The bug can be worked around by selecting a chat where no messages are expected (e.g. Saved Messages) since messages from other non-active chats still cause notifications.
To Reproduce Steps to reproduce the behavior:
- Select a chat with a Friend
- Switch to a different tab
- Make your friend send you a message
- Observe that the message causes no notifications
- Observe that your friend sees that you immediately "read" the message
Expected behavior Messages should not be marked as read and notifications should occur when the tab is not active
Screenshots Not applicable
Desktop (please complete the following information):
- OS: Linux (Arch Linux)
- Browser: Firefox 89
- Version: WebK alpha 0.5.6