Closed Bug 876803 Opened 12 years ago Closed 12 years ago

Thread List UI: Select some threads and press delete

Categories

(Firefox OS Graveyard :: Gaia::SMS, defect)

x86
macOS
defect
Not set
normal

Tracking

(blocking-b2g:leo+, b2g18 fixed)

RESOLVED FIXED
blocking-b2g leo+
Tracking Status
b2g18 --- fixed

People

(Reporter: dietrich, Assigned: gnarf)

References

()

Details

(Keywords: regression, Whiteboard: [uplift-blocker])

Attachments

(2 files, 2 obsolete files)

STR 1- Access to SMS app 2- Press edit button 3- Select multiple conversations Expected Result: The Selected conversations are deleted successfull gets stuck at deleteing.... screen does that work for individual messages ? messages yes, threads no E/GeckoConsole( 862): [JavaScript Error: "threadRecord is undefined" {file: "jar:file:///system/b2g/omni.ja!/components/MobileMessageDatabaseService.js" line: 2193}] looks like a gecko problem ? or maybe we give wrong informations... but imho gecko should never fail like that either - agree
Regression from mms code, will fix post-merge.
blocking-b2g: --- → leo+
Keywords: regression
Whiteboard: [uplift-blocker]
Assignee: nobody → gnarf37
(In reply to Dietrich Ayala (:dietrich) from comment #1) > Regression from mms code, will fix post-merge. I commented on the wrong bug. This one cannot be fixed post-merge, must be fixed before merge occurs. Corey's got a patch in progress now.
Attached patch patch v1 (obsolete) — Splinter Review
The old logic wasn't properly keeping track of variables for delete thread. Also, we shouldn't hide the WaitingScreen or require a re-render from MessageManager if we fix ThreadListUI.removeThread
Attachment #755067 - Flags: review?(felash)
Attachment #755067 - Flags: review?(fbsc)
Attached patch patch v2 (obsolete) — Splinter Review
fixed a bug in header removal
Attachment #755067 - Attachment is obsolete: true
Attachment #755067 - Flags: review?(felash)
Attachment #755067 - Flags: review?(fbsc)
Attachment #755081 - Flags: review?(schung)
Attachment #755081 - Flags: review?(felash)
Attachment #755081 - Flags: review?(fbsc)
Blocks: 876964
I'm going to ammend one more line into the FixedHeader.refresh() - I assumed this method would also update headers, but it doesn't - https://gist.github.com/gnarf37/7082a4befe0f7f68ebd4
Comment on attachment 755081 [details] [diff] [review] patch v2 Review of attachment 755081 [details] [diff] [review]: ----------------------------------------------------------------- ::: apps/sms/js/message_manager.js @@ +240,5 @@ > //Keep the visible button the :last-child > var editButton = document.getElementById('icon-edit'); > editButton.parentNode.appendChild(editButton); > if (mainWrapper.classList.contains('edit')) { > mainWrapper.classList.remove('edit'); I think it's find to remove the re-render here, but we have to update the thread view status(edit button and no message background) after edit. ::: apps/sms/js/thread_list_ui.js @@ +181,5 @@ > var li = document.getElementById('thread-' + threadId); > + var parent = li.parentNode; > + parent.removeChild(li); > + > + // remove the header and the ul for a now empty list "new" empty list?
Attached patch patch v3Splinter Review
Attachment #755081 - Attachment is obsolete: true
Attachment #755081 - Flags: review?(schung)
Attachment #755081 - Flags: review?(felash)
Attachment #755081 - Flags: review?(fbsc)
Attachment #755164 - Flags: review?(schung)
Comment on attachment 755164 [details] [diff] [review] patch v3 Thanks for the update. r=me with the small typo fixing.
Attachment #755164 - Flags: review?(schung) → review+
v1-train: 4694e3b
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Corey, this broke the linter. Please fix it today (on both branches).
Attachment #755291 - Flags: review?(fbsc) → review+
master: cc4b103ab2ffe3dc65602bd12dcfb4952f1d4602 v1-train: 8f5ab7bfd4a2921aab4e2de11e0d79a29c1bb062
Flags: in-moztrap?
Flags: in-moztrap? → in-moztrap+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: