[FIX] Clear unread red line when the ESC key is pressed (#16668)

pull/16618/head
Guilherme Gazzo 5 years ago committed by GitHub
parent af75981fb3
commit 9bd8722aae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      app/ui-utils/client/lib/readMessages.js

@ -174,7 +174,12 @@ Meteor.startup(function() {
.on('keyup', (e) => {
const key = e.which;
if (key === 27) { // ESCAPE KEY
readMessage.readNow();
const rid = Session.get('openedRoom');
if (!rid) {
return;
}
readMessage.readNow(rid);
readMessage.refreshUnreadMark(rid);
}
});
});

Loading…
Cancel
Save