Don't show new messages indicator for CSN messages
This commit is contained in:
parent
6dfd0d1aa5
commit
682bace83b
4
dist/converse.js
vendored
4
dist/converse.js
vendored
@ -61123,7 +61123,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
||||
// XXX: Is this still needed?
|
||||
this.el.setAttribute('id', this.model.get('box_id'));
|
||||
this.el.innerHTML = tpl_chatbox(_.extend(this.model.toJSON(), {
|
||||
unread_msgs: __('You have unread messages')
|
||||
'unread_msgs': __('You have unread messages')
|
||||
}));
|
||||
this.content = this.el.querySelector('.chat-content');
|
||||
this.renderMessageForm();
|
||||
@ -61554,7 +61554,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
||||
// when the user writes a message as opposed to when a
|
||||
// message is received.
|
||||
this.model.set('scrolled', false);
|
||||
} else if (this.model.get('scrolled', true)) {
|
||||
} else if (this.model.get('scrolled', true) && !u.isOnlyChatStateNotification(message)) {
|
||||
this.showNewMessagesIndicator();
|
||||
}
|
||||
}
|
||||
|
@ -336,7 +336,7 @@
|
||||
this.el.setAttribute('id', this.model.get('box_id'));
|
||||
this.el.innerHTML = tpl_chatbox(
|
||||
_.extend(this.model.toJSON(), {
|
||||
unread_msgs: __('You have unread messages')
|
||||
'unread_msgs': __('You have unread messages')
|
||||
}
|
||||
));
|
||||
this.content = this.el.querySelector('.chat-content');
|
||||
@ -754,7 +754,7 @@
|
||||
// when the user writes a message as opposed to when a
|
||||
// message is received.
|
||||
this.model.set('scrolled', false);
|
||||
} else if (this.model.get('scrolled', true)) {
|
||||
} else if (this.model.get('scrolled', true) && !u.isOnlyChatStateNotification(message)) {
|
||||
this.showNewMessagesIndicator();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user