From 52f97f71953e3e24e39bcd2b7f3e72ebc60cc282 Mon Sep 17 00:00:00 2001 From: "jabber.developer2" Date: Mon, 4 May 2026 15:42:19 +0300 Subject: [PATCH] feat(history): autocomplete JID for verify/export/import --- src/command/cmd_ac.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/command/cmd_ac.c b/src/command/cmd_ac.c index 23f5c749..dbb86b39 100644 --- a/src/command/cmd_ac.c +++ b/src/command/cmd_ac.c @@ -1806,6 +1806,14 @@ _cmd_ac_complete_params(ProfWin* window, const char* const input, gboolean previ return result; } + gchar* history_jid_subcmds[] = { "/history verify", "/history export", "/history import" }; + for (int i = 0; i < ARRAY_SIZE(history_jid_subcmds); i++) { + result = autocomplete_param_with_func(input, history_jid_subcmds[i], roster_barejid_autocomplete, previous, NULL); + if (result) { + return result; + } + } + result = autocomplete_param_with_ac(input, "/history", history_ac, TRUE, previous); if (result) { return result;