summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Marlin <luke.marlin@viacesi.Fr>2016-08-13 19:15:33 +0200
committerlouiz’ <louiz@louiz.org>2016-08-13 19:40:49 +0200
commitec077496ba51e0c3a3ed2536831dbc277607ec53 (patch)
tree8586795514edd689e36f23f9f0ce807fce47195e
parentd7ffaa44a24c8c8e06af3dc42f9b0f1694885656 (diff)
downloadpoezio-ec077496ba51e0c3a3ed2536831dbc277607ec53.tar.gz
poezio-ec077496ba51e0c3a3ed2536831dbc277607ec53.tar.bz2
poezio-ec077496ba51e0c3a3ed2536831dbc277607ec53.tar.xz
poezio-ec077496ba51e0c3a3ed2536831dbc277607ec53.zip
fixes #3147 (/message auto-complete misses offline users) by adding every jids to the completion list
-rw-r--r--poezio/core/completions.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/poezio/core/completions.py b/poezio/core/completions.py
index 7ee4a8a6..7dd2c970 100644
--- a/poezio/core/completions.py
+++ b/poezio/core/completions.py
@@ -227,6 +227,9 @@ class CompletionCore:
l.append(jid)
for resource in roster[jid].resources:
l.append(resource.jid)
+ for jid in roster.jids():
+ if not len(roster[jid]):
+ l.append(jid)
return the_input.new_completion(l, 1, '', quotify=True)