From e03fb0b3ce41de208e4b52ee1224a080cfc5c6f5 Mon Sep 17 00:00:00 2001 From: mathieui Date: Sat, 9 May 2020 23:32:26 +0200 Subject: Fix completion and function names for /accept and /add --- poezio/core/completions.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'poezio/core/completions.py') diff --git a/poezio/core/completions.py b/poezio/core/completions.py index ee3e95bf..544a7889 100644 --- a/poezio/core/completions.py +++ b/poezio/core/completions.py @@ -44,6 +44,14 @@ class CompletionCore: ' ', quotify=False) + def roster_barejids(self, the_input): + """Complete roster bare jids""" + jids = sorted( + str(contact.bare_jid) for contact in roster.contacts.values() + if contact.pending_in + ) + return Completion(the_input.new_completion, jids, 1, '', quotify=False) + def presence(self, the_input): """ Completion of /presence -- cgit v1.2.3