Explorar o código

Make list an executable

JC Brand %!s(int64=7) %!d(string=hai) anos
pai
achega
5ded3b6cb9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/converse-muc-views.js

+ 1 - 1
src/converse-muc-views.js

@@ -617,7 +617,7 @@
                         'min_chars': 1,
                         'match_current_word': true,
                         'match_on_tab': true,
-                        'list': this.model.occupants.map(o => ({'label': o.getDisplayName(), 'value': o.get('jid')})),
+                        'list': () => this.model.occupants.map(o => ({'label': o.getDisplayName(), 'value': o.get('jid')})),
                         'filter': _converse.FILTER_STARTSWITH
                     });
                     this.auto_complete.on('suggestion-box-selectcomplete', () => (this.auto_completing = false));