mozilla-b2g/gaia — pull request #7244 by julienw (2012-12-28 22:41:00+00:00)
Title: Bug 822055 - [SMS] Messages sent are duplicated in thread and throbber i...

...s visible on each message

Remove the pending IndexedDB and minor refactoring in sending, resending, and
deletion of messages and threads.

This fixes the duplicated message in thread.

Fixed some other bugs in the process :
- duplicated message when we were resending a failed message
- the received SMS was not displayed when I sent it to myself
- when I was sending the first SMS to a contact, and when I was hiding the Sms
app (using the home button) and then going back to the Sms app, then the
thread was empty. This happened only when the phone number was not normalized
yet in the hash.
- now we try to send the SMS even if we don't have mozSettings
- fix notification was appearing when we were already in the good thread, when
the num was not normalized yet
- now we store in gecko a SMS that the user tried to send when airplane mode was
set.