mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-22 10:28:27 +00:00
Remove person suggestion if it doesn't match with organization
This commit is contained in:
@ -40,6 +40,11 @@ case class MetaProposalList private (proposals: List[MetaProposal]) {
|
||||
def change(f: MetaProposal => MetaProposal): MetaProposalList =
|
||||
new MetaProposalList(proposals.map(f))
|
||||
|
||||
def replace(mp: MetaProposal): MetaProposalList = {
|
||||
val next = proposals.filter(_.proposalType != mp.proposalType)
|
||||
MetaProposalList(mp :: next)
|
||||
}
|
||||
|
||||
def filter(f: MetaProposal => Boolean): MetaProposalList =
|
||||
new MetaProposalList(proposals.filter(f))
|
||||
|
||||
|
Reference in New Issue
Block a user