element-hq / element-hq/element-web

Pressing Esc does not mark room as read

Open
#21,752 1 comment 1 reaction 0 assignees View on GitHub
A-Read-Marker O-Uncommon S-Minor T-Defect X-Needs-Investigation
Dominant language
TypeScript
Stars
13.5k
Forks
2.8k
PR merge metrics
PR metrics pending

Description

### Steps to reproduce

1. Sometimes, when I switch into a room
2. and press Esc to clear mark the room as read

### Outcome

#### What did you expect?
It should mark the room as read, causing the indicator in the top-right to disappear: ![image](https://user-images.githubusercontent.com/76812/162962586-ffa0b0fc-f303-433f-a5ee-19804568fe0a.png)

#### What happened instead?
Nothing happens. I hammer Esc and the indicator doesn't disappear.

If I click the "X" button below the indicator, the indicator disappears as expected.

When I switch to another room and back again, the indicator in the top right still shows unread messages. Now when I press Esc the unread marker disappears, as expected.

If I switch to another room, Esc works as expected.

### Operating system

Ubuntu 21.10

### Browser information

Firefox 98.0.2

### URL for webapp

https://develop.element.io

### Application version

Element version: e6414787d434-react-7600182a35a7-js-b58d09aa9a7a Olm version: 3.2.8

### Homeserver

matrix.org

### Will you send logs?

Yes

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.