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)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla16

People

(Reporter: steveck, Assigned: vicamo)

References

Details

Attachments

(2 files, 1 obsolete file)

      No description provided.
This issue is also raised in github issue: https://github.com/mozilla-b2g/gaia/issues/2053#preview_bucket_971
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.
(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.
Address comment #4 from Philipp. Thank you.
Attachment #637592 - Attachment is obsolete: true
Attachment #638965 - Flags: review?(philipp)
Gaia fix is ready here(https://github.com/vicamo/gaia/tree/bugzilla/769347/master). I'll send a pull request once this is landed.
Attachment #638965 - Flags: review?(philipp) → review+
http://hg.mozilla.org/integration/mozilla-inbound/rev/d3cfb134c625
Assignee: nobody → vyang
Target Milestone: --- → mozilla16
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.

Attachment

General

Created:
Updated:
Size: