Closed Bug 1709678 Opened 3 years ago Closed 3 years ago

Browsing chat logs clears the topic

Categories

(Thunderbird :: Instant Messaging, defect)

defect

Tracking

(thunderbird_esr78 verified)

RESOLVED FIXED
90 Branch
Tracking Status
thunderbird_esr78 --- verified

People

(Reporter: freaktechnik, Assigned: freaktechnik)

References

(Regression)

Details

(Keywords: regression)

Attachments

(2 files)

STR:

  • View a conversation with logs and a topic
  • Select some logs to view
  • Exit the log viewer

Expected result:
The topic stays displayed below the conversation name.

Actual result:
The topic is cleared when viewing the log and not restored when closing the viewer. Previous behavior didn't even clear the topic in the first place.

Based on mozregression I think the regression is from https://hg.mozilla.org/comm-central/rev/9c30d915b033eac597a413f39840285c5b889661

Are these just the group "chat" logs, or does it also include the one-to-one logs?

If its only the former then this is probably from this change https://hg.mozilla.org/comm-central/rev/9c30d915b033eac597a413f39840285c5b889661#l17.15

I set the topic to "" because I thought it was archived content, so the current topic text didn't make sense. If you want to keep the topic in view, then you probably want to use a similar approach as in updateTopic https://searchfox.org/comm-central/rev/343b0f067aa13526b37b3254f614d1bfe9feeba2/mail/components/im/content/chat-conversation.js#1548

And, to restored the topic on closing the logs, you should be able to just call the updateTopic method, or updateConvStatus (which will call updateTopic and will also set the display name).

--

Also, when looking through the code I noticed that initConversationUI calls updateTopic, even though it will always call updateConvStatus, which already calls updateTopic. So the updateTopic call in initConversationUI can be dropped.

The status is not cleared for direct message logs, yes. It is only the topic of MUCs that gets cleared and at least not re-set when closing the log.

Assignee: nobody → martin
Status: NEW → ASSIGNED
Target Milestone: --- → 90 Branch

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/c78ba6ab31ca
Restore topic when leaving log view. r=clokep

Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED

Looks like it's breaking at least comm/mail/components/im/test/browser/browser_logs.js

Flags: needinfo?(martin)

Given it added that test that seems unfortunate... I'll have a look.

Flags: needinfo?(martin)

Also uses shared helpers in browser_contextMenu

Not sure if I also need to change the status of the bug for the checkin needed to be processed?

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/6f31a82fb9d8
Follow-up: fix browser_logs test. r=clokep

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: