========
https://hg.mozilla.org/integration/gaia-central/rev/f038013c2b71
Author: lissyx <lissyx+github@lissyx.dyndns.org>
Desc: Merge pull request #14648 from lissyx/bug910999
Bug 910999 - Correct display and removal of voicemail notification r=alive,julienw
========
https://hg.mozilla.org/integration/gaia-central/rev/59e9dc88365f
Author: Alexandre Lissy <lissyx+github@lissyx.dyndns.org>
Desc: Bug 910999 - Correct display and removal of voicemail notification
In bug 910999 we want to make sure that the voicemail notification is
not removed upon tap of the user but when the message has actually been
listened to. The process for voicemail is that when you have new
messages, carrier sends a SMS with specific bits stating the current
status of your voicemail:
- whether you have messages, i.e. should the voicemail indicator be
turned on ;
- how much messages you have (this is optional, -1 is valid, 0 happens
when you have no more message) ;
- a return number to call and a text message ;
So when you have voicemail messages waiting for you, you get a sms with
the active bit set to 1. We get this messag from Gecko through the
statuschanged event, and the active status is read from the hasMessages
property. When this is true, we send a notification. When this is true
we remove the notification.
Removal was not possible until the new Notification API is available. So
now that it is available, we make use of it. We have to enhance the
notification handler of the system app, however, to disable the hacks
that we have implemented for the old API. This is handled as of bug
890440.
========
https://hg.mozilla.org/integration/gaia-central/rev/ab9bee224ef3
Author: lissyx <lissyx+github@lissyx.dyndns.org>
Desc: Merge pull request #14801 from lissyx/bug948341
Bug 948341 - Convert Dialer to make use of the new Notification API r=etienne_s
========
https://hg.mozilla.org/integration/gaia-central/rev/eea27ecee77c
Author: Alexandre Lissy <lissyx+github@lissyx.dyndns.org>
Desc: Bug 948341 - Convert Dialer to make use of the new Notification API
Usage of the new API maks the code cleaner, we only depends on
NotificationHelper for getIconURI. Since bug 890440 landed, when this
new API is used there is no more hack to remove notification, so we have
to handle it ourself:
- we have to close the notification in the 'click' event handler that
we install
- when we load the call log, we check for any notification and close
them.
The second point allows us to fix correctly bug 926318.
========
https://hg.mozilla.org/integration/gaia-central/rev/c8f56fb9f988
Author: Evelyn Eastmond <evhan55@gmail.com>
Desc: Bug 950914 - [Messages][Drafts] Replace existing draft when hiding app while showing unsent, existing draft content
========
https://hg.mozilla.org/integration/gaia-central/rev/d7ad364d6bc7
Author: Evelyn Eastmond <evhan55@gmail.com>
Desc: Bug 943395 - [Messages][Drafts] Replace existing Draft layer needed when replacing draft
========
https://hg.mozilla.org/integration/gaia-central/rev/76fdef6bd081
Author: Rick Waldron <waldron.rick@gmail.com>
Desc: Bug 947211 - [Messages][Drafts] Thread message/draft status (preview, styling and icon) is not accurate for various cases r=julienw
https://bugzilla.mozilla.org/show_bug.cgi?id=947211
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
========
https://hg.mozilla.org/integration/gaia-central/rev/1779875de904
Author: Rick Waldron <waldron.rick@gmail.com>
Desc: Bug 917639 r=julienw
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
========
https://hg.mozilla.org/integration/gaia-central/rev/4b8b74f147e3
Author: Rick Waldron <waldron.rick@gmail.com>
Desc: Bug 949524 - [Messages][Drafts] TypeError: record/draft.content.find is not a function r=julienw
https://bugzilla.mozilla.org/show_bug.cgi?id=949524
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
========
https://hg.mozilla.org/integration/gaia-central/rev/112567463dcc
Author: Evelyn Eastmond <evhan55@gmail.com>
Desc: Bug 949140 - [Messages][Drafts] Thread list doesn't discard new draft thread that is discarded via menu
========
https://hg.mozilla.org/integration/gaia-central/rev/69f300d0e26b
Author: Evelyn Eastmond <evhan55@gmail.com>
Desc: Bug 949137 - [Messages][Drafts] Composer doesn't clear after sending a new draft r=rwaldron
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
========
https://hg.mozilla.org/integration/gaia-central/rev/e3ab3fe0a372
Author: Evelyn Eastmond <evhan55@gmail.com>
Desc: Bug 947215 - [Messages][Drafts] Do not try to match an existing thread when saving a threadless draft r=rwaldron
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
========
https://hg.mozilla.org/integration/gaia-central/rev/41e19646ad57
Author: Evelyn Eastmond <evhan55@gmail.com>
Desc: Bug 946989 - [Messages][Drafts] Duplicate threadless drafts get saved r=rwaldron
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
========
https://hg.mozilla.org/integration/gaia-central/rev/c672f0347c25
Author: Adam Hyland <protonk@gmail.com>
Desc: Bug 946995 - [Messages][Drafts] MMS Drafts don't restore correctly after app closes/restarts r=rwaldron
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
========
https://hg.mozilla.org/integration/gaia-central/rev/fa0437fc000f
Author: Adam Hyland <protonk@gmail.com>
Desc: Bug 936648 - [Messages][Drafts] Draft display and interaction within a thread r=rwaldron
========
https://hg.mozilla.org/integration/gaia-central/rev/67b009977bc7
Author: Rick Waldron <waldron.rick@gmail.com>
Desc: Bug 936647 - [Messages][Drafts] Preview drafts threads in thread list r=julienw
https://bugzilla.mozilla.org/show_bug.cgi?id=936647
- index.html:
- messages-thread-tmpl
- Adds "icon-draft" class to "icon icon-read" classes
- Adds data-l10n-id="no-receipient"
- Adds data-list=draft|thread
- js/desktop-only/mobilemessage.js
- Updates Draft bootstrapping data
- js/drafts.js
- Adds read-once and cache to Drafts.request
- Adds unique id mechanism
- Updates Drafts.delete to allow deleting all drafts for a threadId
- Renames Drafts.byId => Drafts.byThreadId
- Adds Drafts.get(draftId)
- Updates Drafts.request to abide a local isCached flag.
- Only load from storage when isCached is false.
- Updates Drafts.request to revive stored Draft objects as actual Draft objects
- Adds Draft.List.prototype.latest that points at the latest draft in a Draft.List (ie. for a specified threadId or null key)
- Adds function guid for creating quasi-unique ids
- js/message_manager.js
- Adds `draft` property to hold draft object to coordinate with New Message view
- Calls Drafts.request() from init
- Calls ThreadListUI.renderDrafts() from onHashChange when hash = #thread-list
- js/thread_list_ui.js
- Wraps contents in IIFE
- Adds draftLinks property to map DOM nodes to draftId
- Updates setContact to include lookup from draft
- Updates handleEvent to capture draft object on click. Stops looking at 'threads-container'
- Updates delete to create two lists of deletable items from the selectedInputs array. List is determined by data-list property value.
- Drafts are deleted similarly to Threads, but will exit immediately if no Threads are to be deleted
- Drafts.store() is called upon completing delete operation
- Adds ThreadListUI.renderDrafts to create "Thread List Items" from Draft objects that do not have their own thread
- Calls ThreadListUI.renderDrafts from ThreadListUI.renderThreads
- Updates ThreadListUI.createThread to create a "Thread List Item" from a Draft object, or to mark a Thread that has a draft.
- Updates rendered markup for "Thread List Item"
- Updates timestamp handling in ThreadListUI.appendThread
- js/thread_ui.js
- Updates ThreadUI.saveMessageDraft new or replacement drafts
- js/threads.js
- Expose Thread constructor
- Adds Thread.prototype.drafts accessor to Drafts.byThreadId(this.id);
- Adds Thread.prototype.hasDrafts accessor as short hand
- Adds tests to:
- test/unit/compose_test.js
- test/unit/drafts_test.js
- test/unit/media/pixel.jpg
- test/unit/message_manager_test.js
- test/unit/mock_async_storage.js
- test/unit/mock_drafts.js
- test/unit/mock_navigatormoz_sms.js
- test/unit/thread_list_ui_test.js
- test/unit/thread_ui_test.js
- test/unit/threads_test.js
- Passing both lint and hint
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
========
https://hg.mozilla.org/integration/gaia-central/rev/a0f8e3d0efc0
Author: Evelyn Eastmond <evhan55@gmail.com>
Desc: Bug 936641 - [Messages][Drafts] Create message drafts upon user interaction
========
https://hg.mozilla.org/integration/gaia-central/rev/bb759ce17d5a
Author: Rick Waldron <waldron.rick@gmail.com>
Desc: Bug 935177 - [Messages][Drafts] Update "discard message" confirmation prompt to options menu/dialog; add "save draft" no-op r=julienw
https://bugzilla.mozilla.org/show_bug.cgi?id=935177
- New strings:
- save-as-draft = Save as Draft
- discard-message = Discard
- Removes window.confirm mechanism
- Implements Multi-option prompt with OptionMenu
- Basic tests to assert the correct operations are performed by the option handlers
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>