Mark room as read when escape is pressed

Signed-off-by: Aaron Raimist <aaron@raim.ist>
This commit is contained in:
Aaron Raimist 2020-03-24 21:35:17 -05:00
parent 26bda5933b
commit 76104edeca
No known key found for this signature in database
GPG key ID: 37419210002890EF

View file

@ -560,6 +560,12 @@ export default createReactClass({
handled = true; handled = true;
} }
break; break;
case Key.ESCAPE:
this._messagePanel.forgetReadMarker();
this.jumpToLiveTimeline();
handled = true;
break;
} }
if (handled) { if (handled) {