This commit is contained in:
or-else
2022-06-13 15:32:10 -07:00
parent 1fb3a233a2
commit bdfe163ecf
7 changed files with 21 additions and 15 deletions
+3 -1
View File
@@ -134,6 +134,8 @@ class MessagesView extends React.Component {
this.readNotificationQueue = [];
this.readNotificationTimer = null;
this.keyPressTimer = null;
}
getOrCreateMessageRef(seqId) {
@@ -515,7 +517,7 @@ class MessagesView extends React.Component {
// Set up the timer if it's not running already.
if (!this.readNotificationTimer) {
this.readNotificationTimer = setInterval(() => {
this.readNotificationTimer = setInterval(_ => {
if (this.readNotificationQueue.length == 0) {
// Shut down the timer if the queue is empty.
clearInterval(this.readNotificationTimer);