Should we delete persons when all the contacts have been removed from them?

A little back story here might be necessary so…

A PurplePerson is an object that groups multiple PurpleContact objects and is what is used to display contacts in the contact list. They are very similar to PurpleContact in Purple 2.

PurplePerson has some user settable properties like alias, avatar, color and tags which we persist with PurpleContactManagerBacked or will be doing so shortly.

This has raised the question of whether or not we keep the PurplePerson instance around if all of the contacts it is grouping have been removed. Right now I am leaning towards keeping it around, but wanted to see if anyone has any reason why would should automatically remove them.

1 Like

I think you should keep it so that you have the option to add new contacts later, if that’s something you might want to do. People can always remove them manually if they want to do housekeeping.

2 Likes