mirror of
https://github.com/urbit/shrub.git
synced 2024-12-01 06:35:32 +03:00
Merge pull request #3757 from urbit/mp/groups/participant-search
groups: allow search to have sigs
This commit is contained in:
commit
dbb57cee01
@ -45,8 +45,9 @@ const searchParticipant = (search: string) => (p: Participant) => {
|
||||
if (search.length == 0) {
|
||||
return true;
|
||||
}
|
||||
const s = search.toLowerCase();
|
||||
return p.patp.includes(s) || p.nickname.toLowerCase().includes(search);
|
||||
let s = search.toLowerCase();
|
||||
s = (s.startsWith('~')) ? s.substr(1) : s;
|
||||
return p.patp.includes(s) || p.nickname.toLowerCase().includes(s);
|
||||
};
|
||||
|
||||
function getParticipants(cs: Contacts, group: Group) {
|
||||
|
Loading…
Reference in New Issue
Block a user