Closed
Bug 748388
Opened 12 years ago
Closed 12 years ago
Protocol icon not displayed/updated in the right pane when selecting a contact
Categories
(Thunderbird :: Instant Messaging, defect)
Thunderbird
Instant Messaging
Tracking
(thunderbird14 fixed)
RESOLVED
FIXED
Thunderbird 15.0
Tracking | Status | |
---|---|---|
thunderbird14 | --- | fixed |
People
(Reporter: andreasn, Assigned: florian)
Details
Attachments
(2 files)
75.40 KB,
image/png
|
Details | |
1.15 KB,
patch
|
bwinton
:
review+
Bienvenu
:
approval-comm-aurora+
|
Details | Diff | Splinter Review |
In the right sidebar, my gmail accounts also gets the twitter icon. Steps to reproduce: 1. Start with a fresh profile 2. Set up twitter 3. Set up gtalk
Reporter | ||
Comment 1•12 years ago
|
||
If there is no twitter account present it seems gtalk gets no account icon there at all.
Assignee | ||
Comment 2•12 years ago
|
||
Assignee | ||
Updated•12 years ago
|
OS: Windows 7 → All
Hardware: x86_64 → All
Summary: Twitter icon also shows for gtalk accounts → Protocol icon not displayed/updated in the right pane when selecting a contact
Reporter | ||
Comment 3•12 years ago
|
||
Yay! Works with patch!
Comment 4•12 years ago
|
||
Comment on attachment 617893 [details] [diff] [review] Patch >+++ b/mail/components/im/content/chat-messenger-overlay.js >@@ -308,16 +308,18 @@ var chatHandler = { > showContactInfo: function(aContact) { > let cti = document.getElementById("conv-top-info"); > cti.setAttribute("userIcon", aContact.buddyIconFilename); > cti.setAttribute("displayName", aContact.displayName); >+ let proto = aContact.preferredBuddy.protocol; >+ cti.setAttribute("prplIcon", proto.iconBaseURI + "icon.png"); So, as a fix this makes sense, but I'm unclear as to why the twitter icon was showing up previously… r=me with that explained. ;) Thanks, Blake.
Attachment #617893 -
Flags: review?(bwinton) → review+
Assignee | ||
Comment 5•12 years ago
|
||
(In reply to Blake Winton (:bwinton - Thunderbird UX) from comment #4) > Comment on attachment 617893 [details] [diff] [review] > Patch > > >+++ b/mail/components/im/content/chat-messenger-overlay.js > >@@ -308,16 +308,18 @@ var chatHandler = { > > showContactInfo: function(aContact) { > > let cti = document.getElementById("conv-top-info"); > > cti.setAttribute("userIcon", aContact.buddyIconFilename); > > cti.setAttribute("displayName", aContact.displayName); > >+ let proto = aContact.preferredBuddy.protocol; > >+ cti.setAttribute("prplIcon", proto.iconBaseURI + "icon.png"); > > So, as a fix this makes sense, but I'm unclear as to why the twitter icon > was showing up previously… > > r=me with that explained. ;) That's easy to explain: the code updating the attributes of the "conv-top-info" element executed when a conversation is selected updates the "prplIcon" attribute, but the code updating that attribute when a contact is selected was missing. So the Twitter icon that Andreas was seeing is the icon of the last conversation he had selected (his twitter timeline) before selecting the contact. What I would have a hard time explaining though is how that bug appeared. The 2 most likely hypothesis are: - the code setting that attribute when selecting a contact was lost during a refactoring that I can neither remember nor find a trace of. - that never worked, but nobody noticed because it's harder to notice a missing icon than a wrong icon, and during most of my testing the conversations were from the same protocol as the connected account.
Assignee | ||
Comment 6•12 years ago
|
||
http://hg.mozilla.org/comm-central/rev/ea35258f80bd
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 15.0
Assignee | ||
Updated•12 years ago
|
Attachment #617893 -
Flags: approval-comm-aurora?
Updated•12 years ago
|
Attachment #617893 -
Flags: approval-comm-aurora? → approval-comm-aurora+
Assignee | ||
Comment 7•12 years ago
|
||
https://hg.mozilla.org/releases/comm-aurora/rev/c06afbc01046
status-thunderbird14:
--- → fixed
You need to log in
before you can comment on or make changes to this bug.
Description
•