Merge pull request #3757 from urbit/mp/groups/participant-search

groups: allow search to have sigs
This commit is contained in:
matildepark 2020-10-19 22:09:25 -04:00 committed by GitHub
commit dbb57cee01
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) {