Closed
Bug 769347
Opened 12 years ago
Closed 12 years ago
B2G SMS: Messages returned from database should be sorted by time stamp.
Categories
(Core :: DOM: Device Interfaces, defect)
Tracking
()
RESOLVED
FIXED
mozilla16
People
(Reporter: steveck, Assigned: vicamo)
References
Details
Attachments
(2 files, 1 obsolete file)
45.41 KB,
image/jpeg
|
Details | |
1.90 KB,
patch
|
philikon
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Reporter | ||
Comment 1•12 years ago
|
||
This issue is also raised in github issue: https://github.com/mozilla-b2g/gaia/issues/2053#preview_bucket_971
Reporter | ||
Comment 2•12 years ago
|
||
Assignee | ||
Comment 3•12 years ago
|
||
Inside SmsDatabaseService.keyIntersection(), the order of final results is the order of last keys array filtered. This patch always filters keys[FILTER_TIMESTAMP], so it should be always ordered by timestamp.
Comment 4•12 years ago
|
||
(In reply to Vicamo Yang [:vicamo] from comment #3) > Inside SmsDatabaseService.keyIntersection(), the order of final results is > the order of last keys array filtered. This patch always filters > keys[FILTER_TIMESTAMP], so it should be always ordered by timestamp. Good hack. Can you add a comment explaining this side-effect? r=me with that.
Assignee | ||
Comment 5•12 years ago
|
||
Address comment #4 from Philipp. Thank you.
Attachment #637592 -
Attachment is obsolete: true
Attachment #638965 -
Flags: review?(philipp)
Assignee | ||
Comment 6•12 years ago
|
||
Gaia fix is ready here(https://github.com/vicamo/gaia/tree/bugzilla/769347/master). I'll send a pull request once this is landed.
Updated•12 years ago
|
Attachment #638965 -
Flags: review?(philipp) → review+
Assignee | ||
Comment 7•12 years ago
|
||
http://hg.mozilla.org/integration/mozilla-inbound/rev/d3cfb134c625
Assignee: nobody → vyang
Target Milestone: --- → mozilla16
Comment 8•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/d3cfb134c625
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•