Closed Bug 947215 Opened 12 years ago Closed 12 years ago

[Messages][Drafts] Do not try to match an existing thread when saving a threadless draft

Categories

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

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: julienw, Assigned: evhan55)

References

Details

The current code tries to match an existing thread when saving a threadless ("new message") draft, and saves a thread-bound draft instead if matched. I recall we discussed this in the past but I think this was subsequently removed. So I think this piece of code should be removed. Ayman, can you comment on this?
Flags: needinfo?(aymanmaat)
(In reply to Julien Wajsberg [:julienw] from comment #0) > The current code tries to match an existing thread when saving a threadless > ("new message") draft, and saves a thread-bound draft instead if matched. I > recall we discussed this in the past but I think this was subsequently > removed. > > So I think this piece of code should be removed. > Yes this piece of code should be removed. I deliberately did not specify this behaviour as we cannot edit the ‘to field’ in the message thread... and we cannot guarantee that the user has finished editing the 'to field' when the draft is saved. I thought I had been quite clear on that. This code would also create a conflict in the scenario where a user has already got a ‘draft’ message saved within the message thread into which the message that is being composed in the new message composer will be saved as we can only save one draft per message thread.
Flags: needinfo?(aymanmaat)
Assignee: nobody → evelyn
(In reply to ayman maat :maat from comment #1) > (In reply to Julien Wajsberg [:julienw] from comment #0) > > The current code tries to match an existing thread when saving a threadless > > ("new message") draft, and saves a thread-bound draft instead if matched. I > > recall we discussed this in the past but I think this was subsequently > > removed. > > > > So I think this piece of code should be removed. > > > > Yes this piece of code should be removed. > > I deliberately did not specify this behaviour as we cannot edit the ‘to > field’ in the message thread... and we cannot guarantee that the user has > finished editing the 'to field' when the draft is saved. I thought I had > been quite clear on that. > > This code would also create a conflict in the scenario where a user has > already got a ‘draft’ message saved within the message thread into which the > message that is being composed in the new message composer will be saved as > we can only save one draft per message thread. Okay, thank you Ayman and Julien!
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.