-
-
Notifications
You must be signed in to change notification settings - Fork 777
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new config setting
muc_search_service
Lets you configure which JID to use when searching for MUCs for auto-complete purposes. Fixes #3305
- Loading branch information
Showing
7 changed files
with
39 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1331,6 +1331,17 @@ automatically be "john". If now [email protected] tries to join the | |
room, his nickname will be "john-2", and if [email protected] joins, then | ||
his nickname will be "john-3", and so forth. | ||
|
||
|
||
muc_search_service | ||
------------------ | ||
|
||
* Default: ``'[email protected]'`` | ||
|
||
The JID of the service that should be used to search for MUCs for auto-complete | ||
purposes. If this value is set to an empty string, no service will be used and | ||
the auto-complete feature for adding MUCs will be disabled. | ||
|
||
|
||
muc_send_probes | ||
--------------- | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,6 +52,7 @@ converse.plugins.add('converse-muc-views', { | |
'muc_mention_autocomplete_show_avatar': true, | ||
'muc_roomid_policy': null, | ||
'muc_roomid_policy_hint': null, | ||
'muc_search_service': '[email protected]', | ||
'roomconfig_whitelist': [], | ||
'show_retraction_warning': true, | ||
'visible_toolbar_buttons': { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,11 +10,12 @@ const rooms_cache = {}; | |
* @param {string} query | ||
*/ | ||
async function searchRooms (query) { | ||
const muc_search_service = api.settings.get('muc_search_service'); | ||
const bare_jid = _converse.session.get('bare_jid'); | ||
const iq = $iq({ | ||
'type': 'get', | ||
'from': bare_jid, | ||
'to': '[email protected]' | ||
'to': muc_search_service, | ||
}).c('search', { 'xmlns': Strophe.NS.MUCSEARCH }) | ||
.c('set', { 'xmlns': Strophe.NS.RSM }) | ||
.c('max').t(10).up().up() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters