Kaynağa Gözat

Make list an executable

JC Brand 6 yıl önce
ebeveyn
işleme
5ded3b6cb9
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      src/converse-muc-views.js

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

@@ -617,7 +617,7 @@
                         'min_chars': 1,
                         'min_chars': 1,
                         'match_current_word': true,
                         'match_current_word': true,
                         'match_on_tab': 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
                         'filter': _converse.FILTER_STARTSWITH
                     });
                     });
                     this.auto_complete.on('suggestion-box-selectcomplete', () => (this.auto_completing = false));
                     this.auto_complete.on('suggestion-box-selectcomplete', () => (this.auto_completing = false));