aboutsummaryrefslogtreecommitdiffstats
path: root/view/js/autocomplete.js
diff options
context:
space:
mode:
Diffstat (limited to 'view/js/autocomplete.js')
-rw-r--r--view/js/autocomplete.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/view/js/autocomplete.js b/view/js/autocomplete.js
index 3c35df860..f695a5dbf 100644
--- a/view/js/autocomplete.js
+++ b/view/js/autocomplete.js
@@ -15,7 +15,7 @@ function contact_search(term, callback, backend_url, type, extra_channels) {
// Filter old results locally
var matching = contact_search.cache[bt][t].filter(function (x) { return (x.name.toLowerCase().indexOf(lterm) >= 0 || x.nick.toLowerCase().indexOf(lterm) >= 0); });
matching.unshift({taggable:false, text: term, replace: term});
- callback(matching);
+ setTimeout(function() { callback(matching)} , 1); // Use "pseudo-thread" to avoid some problems
return;
}
}