smartlist: contact duplication issues with temporary item
If a contact has an alias without registering a username then searching for this contact using its ring ID breaks the temporary item in the smartlist.
How to reproduce:
- Find a contact without registered name which has an alias
- Enter its ring ID in the search bar
- Contact appears twice and the first entry can be added as a contact (although this contact is already a contact)
Obviously adding the first item as a contact breaks the smartlist and very strange things happen.