Set default to avoid includes being called on undefined

This commit is contained in:
JC Brand 2018-12-17 13:08:17 +01:00
parent d2d64952a0
commit 4a65e39804
2 changed files with 4 additions and 2 deletions

3
dist/converse.js vendored
View File

@ -67110,7 +67110,8 @@ _converse_core__WEBPACK_IMPORTED_MODULE_6__["default"].plugins.add('converse-muc
});
_converse.ChatRoomOccupant = Backbone.Model.extend({
defaults: {
'show': 'offline'
'show': 'offline',
'states': []
},
initialize(attributes) {

View File

@ -1099,7 +1099,8 @@ converse.plugins.add('converse-muc', {
_converse.ChatRoomOccupant = Backbone.Model.extend({
defaults: {
'show': 'offline'
'show': 'offline',
'states': []
},
initialize (attributes) {