mirror of
https://github.com/discourse/discourse.git
synced 2025-09-04 08:47:37 +08:00
FIX: invite to message was not allowing groups
Previously we were incorrectly checking mentionable instead of messageable Also fix edge case where multiple groups sharing a name mean that exact match override is not working Also cleans up params sent to user selector
This commit is contained in:
parent
5f8f691e2b
commit
b34b1b6fe3
6 changed files with 45 additions and 34 deletions
|
@ -47,6 +47,10 @@ QUnit.module("lib:user-search", {
|
|||
}
|
||||
],
|
||||
groups: [
|
||||
{
|
||||
"name": "bob",
|
||||
"usernames": []
|
||||
},
|
||||
{
|
||||
"name": "team",
|
||||
"usernames": []
|
||||
|
@ -61,4 +65,4 @@ QUnit.test("it places groups unconditionally for exact match", assert => {
|
|||
return userSearch({term: 'Team'}).then((results)=>{
|
||||
assert.equal(results[results.length-1]["name"], "team");
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue