Bugfix. Message indicator wasn't shown

when we received a message for a yet non-existing chat in singleton
mode.
This commit is contained in:
JC Brand 2018-06-06 09:39:56 +02:00
parent 54c6bcd861
commit 734f3469dd
2 changed files with 2 additions and 0 deletions

1
dist/converse.js vendored
View File

@ -76550,6 +76550,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
ChatBoxView: {
shouldShowOnTextMessage() {
if (_.includes(['mobile', 'fullscreen', 'embedded'], this.__super__._converse.view_mode)) {
this.model.set('hidden', true);
return false;
} else {
return this.__super__.shouldShowOnTextMessage.apply(this, arguments);

View File

@ -66,6 +66,7 @@
ChatBoxView: {
shouldShowOnTextMessage () {
if (_.includes(['mobile', 'fullscreen', 'embedded'], this.__super__._converse.view_mode)) {
this.model.set('hidden', true);
return false;
} else {
return this.__super__.shouldShowOnTextMessage.apply(this, arguments);