Closed Bug 830222 Opened 11 years ago Closed 11 years ago

Opening an SMS thread scrolls through full history of SMS messages in thread

Categories

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

All
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(blocking-b2g:-, b2g18+ fixed)

RESOLVED FIXED
blocking-b2g -
Tracking Status
b2g18 + fixed

People

(Reporter: jaws, Assigned: etienne)

References

Details

(Whiteboard: [EU_TPE_TRIAGED])

Attachments

(1 file, 1 obsolete file)

This is in build 20130110070201 on the beta channel.

When entering an SMS thread, the last message is displayed and then the viewport jumps to the first message and scrolls down to the last message.

This is not 100% reproducible, but it is quite jarring and annoying when it happens.

I still want to log this bug in case others are experiencing it and in the hopes that we will get better STR.
These steps are reproducible for me 100% of the time.

STR:
Open the SMS app and enter a thread that is longer than the viewport.
Press the home button
Re-enter the SMS app

Upon reentering the SMS app, the previously selected thread will be scrolled from top to bottom.
blocking-basecamp: --- → ?
Basecamp? has been retired. Please use tef? and tracking-b2g?
blocking-b2g: --- → tef?
blocking-basecamp: ? → ---
tracking-b2g18: --- → ?
blocking-b2g: tef? → -
Whiteboard: [EU_TPE_TRIAGED]
Assignee: nobody → fbsc
Currently *every* time the SMS app becomes visible we re-render all the threads and the current conversation.

I'm attaching a patch that fixes the |updateTimeHeaders| function, allowing us to avoid all this re-rendering.
Assignee: fbsc → etienne
Blocks: 806592
Attached patch Patch proposal (obsolete) — Splinter Review
Testing completed: dogfooded
Attachment #704530 - Flags: review?(21)
Attachment #704530 - Flags: approval-gaia-master?(21)
Hi Etienne,
I was checking your code, but I dont know why we have to remove 'onVisibilityChange'. I know what you are trying to solve, but 'visibility' event it's needed in order to refresh the info of a thread.
For example, imagine the following scenario:
- Open SMS App, and go to thread '+34612123123'
- Open Contacts
- Create contact 'Robert' with '+34612123123'
- Go back to SMS App

With this change in the visibility, we could check again if the info of the contact is up-to-date. Removing this visibility management, we are loosing this functionality.
(In reply to Borja Salguero [:borjasalguero] from comment #6)
> Hi Etienne,
> I was checking your code, but I dont know why we have to remove
> 'onVisibilityChange'. I know what you are trying to solve, but 'visibility'
> event it's needed in order to refresh the info of a thread.
> For example, imagine the following scenario:
> - Open SMS App, and go to thread '+34612123123'
> - Open Contacts
> - Create contact 'Robert' with '+34612123123'
> - Go back to SMS App
> 
> With this change in the visibility, we could check again if the info of the
> contact is up-to-date. Removing this visibility management, we are loosing
> this functionality.

Updating the patch right away!
Etienne, Im gonna take the review of this patch ok? I would like to test it once you have the fix of contacts!
Attachment #704530 - Flags: review?(fbsc)
(In reply to Borja Salguero [:borjasalguero] from comment #8)
> Etienne, Im gonna take the review of this patch ok? I would like to test it
> once you have the fix of contacts!

np, wasn't sure you were back from PTO.
Attached patch Patch v2Splinter Review
Note: this patch is meant to be a surgical as possible.
Attachment #704530 - Attachment is obsolete: true
Attachment #704530 - Flags: review?(fbsc)
Attachment #704530 - Flags: review?(21)
Attachment #704530 - Flags: approval-gaia-master?(21)
Attachment #704546 - Flags: review?(fbsc)
Attachment #704546 - Flags: approval-gaia-master?(21)
Attachment #704546 - Flags: review?(fbsc) → review+
Thanks etienne! This patch fix the annoying effect of re-rendering. Making some test I've discovered a small issue while editing SMSs, but I've filed a new bug for it https://bugzilla.mozilla.org/show_bug.cgi?id=833010. Thanks!
Attachment #704546 - Flags: approval-gaia-master?(21) → approval-gaia-master+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: