Closed
Bug 955680
Opened 11 years ago
Closed 11 years ago
Only remember on-hold state for autojoined conversations
Categories
(Chat Core :: General, defect)
Chat Core
General
Tracking
(Not tracked)
RESOLVED
FIXED
1.5
People
(Reporter: aleth, Assigned: aleth)
References
Details
(Whiteboard: [1.5-blocking])
Attachments
(1 file)
(deleted),
patch
|
florian
:
review+
|
Details | Diff | Splinter Review |
*** Original post on bio 2232 at 2013-10-29 11:56:00 UTC ***
The changed behaviour introduced by bug 955552 (bio 2114) has turned out to be suboptimal.
Assignee | ||
Updated•11 years ago
|
Whiteboard: [1.5-blocking]
Assignee | ||
Comment 1•11 years ago
|
||
*** Original post on bio 2232 at 2013-10-29 12:05:52 UTC ***
A good way to fix this would be to remember the on-hold state for only one restart, then delete it. Autojoined channels always get joined again, so are not affected, while other channels have their state remembered for the following session, and not thereafter (so the memory doesn't last longer than the user's, which is what causes problems).
Comment 2•11 years ago
|
||
*** Original post on bio 2232 at 2013-10-29 12:20:00 UTC ***
comment 1 seems to assume that you always connect all your accounts each time Ib starts (which is not necessarily true if you are offline, or if some accounts don't auto-login).
Updated•11 years ago
|
Whiteboard: [1.5-blocking] → [1.5-blocking][needs patch aleth/flo]
Assignee | ||
Comment 3•11 years ago
|
||
*** Original post on bio 2232 as attmnt 3116 at 2013-12-09 22:09:00 UTC ***
What is needed to fix this bug is a focusConversation call on conversations opened by user action.
This is done for the join chat menu, but not for the awesometab. This patch adds the method used in http://lxr.instantbird.org/instantbird/source/instantbird/content/joinchat.js#116 to do it in the awesometab as well.
It's a hack (despite it being in the existing code). The correct fix imho would be to change joinChat to return a conv, http://lxr.instantbird.org/instantbird/source/chat/components/public/imIAccount.idl#126.
Attachment #8354900 -
Flags: review?(florian)
Comment 4•11 years ago
|
||
Comment on attachment 8354900 [details] [diff] [review]
Workaround patch
*** Original change on bio 2232 attmnt 3116 at 2013-12-09 22:38:12 UTC ***
Thanks!
(In reply to comment #3)
> What is needed to fix this bug is a focusConversation call on conversations
> opened by user action.
This is not to fix the bug, but to hide it for the common case (IRC channels); which is enough for 1.5.
> The correct fix imho would
> be to change joinChat to return a conv
This is something we should do, but I'm afraid we won't be able to guarantee the return value is useful, as making the method return the conversation object for libpurple-prpls may be tricky (it's the reason why the method returns void right now). I think we now have enough JS-prpls that it's worth returning the conv object when we can... in another bug! :-)
Attachment #8354900 -
Flags: review?(florian) → review+
Assignee | ||
Updated•11 years ago
|
Whiteboard: [1.5-blocking][needs patch aleth/flo] → [1.5-blocking][checkin-needed]
Comment 5•11 years ago
|
||
*** Original post on bio 2232 at 2013-12-10 11:33:32 UTC ***
http://hg.instantbird.org/instantbird/rev/c64ee272e60e
Thanks. I guess we should file a follow up to fix this the "right" way?
Assignee: nobody → aleth
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [1.5-blocking][checkin-needed] → [1.5-blocking]
Target Milestone: --- → 1.5
You need to log in
before you can comment on or make changes to this bug.
Description
•