Closed
Bug 1144537
Opened 10 years ago
Closed 8 years ago
When a contact changes try to update only the relevant call log entries
Categories
(Firefox OS Graveyard :: Gaia::Dialer, defect)
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: gsvelto, Unassigned)
References
Details
When we receive a contactchange event we try to update every single entry in the call log by reading it from the database and checking if it matches the current contact. This is clearly suboptimal and scales poorly; instead we should use the contact information to pre-filter the elements we try to update.
For contact removals and updates we can use the provided contact id to retrieve only the relevant elements from the database and we can match them against the DOM elements by looking in their dataset (the contact id is stored in the DOM node in <node>.dataset.contactId).
For contact additions we can lookup the call groups by using the contact's number(s) both in the database and in the DOM tree (the DOM nodes hold the call group's number under <node>.dataset.phoneNumber).
Reporter | ||
Updated•10 years ago
|
OS: Linux → Gonk (Firefox OS)
Hardware: x86_64 → ARM
Reporter | ||
Updated•8 years ago
|
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•