Commit 4a65e398 authored by JC Brand's avatar JC Brand

Set default to avoid `includes` being called on `undefined`

parent d2d64952
...@@ -67110,7 +67110,8 @@ _converse_core__WEBPACK_IMPORTED_MODULE_6__["default"].plugins.add('converse-muc ...@@ -67110,7 +67110,8 @@ _converse_core__WEBPACK_IMPORTED_MODULE_6__["default"].plugins.add('converse-muc
}); });
_converse.ChatRoomOccupant = Backbone.Model.extend({ _converse.ChatRoomOccupant = Backbone.Model.extend({
defaults: { defaults: {
'show': 'offline' 'show': 'offline',
'states': []
}, },
initialize(attributes) { initialize(attributes) {
...@@ -1099,7 +1099,8 @@ converse.plugins.add('converse-muc', { ...@@ -1099,7 +1099,8 @@ converse.plugins.add('converse-muc', {
_converse.ChatRoomOccupant = Backbone.Model.extend({ _converse.ChatRoomOccupant = Backbone.Model.extend({
defaults: { defaults: {
'show': 'offline' 'show': 'offline',
'states': []
}, },
initialize (attributes) { initialize (attributes) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment