Bug 383974

Summary: The account own "contact" is sometime visible in the timeline
Product: [Unmaintained] ring-kde Reporter: Emmanuel Lepage Vallée <emmanuel.lepage>
Component: generalAssignee: Emmanuel Lepage Vallée <emmanuel.lepage>
Status: RESOLVED WORKSFORME    
Severity: minor    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Emmanuel Lepage Vallée 2017-08-24 20:59:34 UTC
If the user account own profile/contact/avatar creates more than a single ContactMethod entry (for example, by trying to call itself for some absurd reasons), it will create a "black hole" in the PhoneDirectoryModel. That duplicated ContactMethod should have the "isSelf" state, but doesn't. It means it can then vacuum history elements into itself instead of the real peer. The database is no longer consistent and the models view are wrong.