mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 14:12:10 +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:
@ -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");
|
||||
});
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user