OTR Chat: important consecutive inline system messages can be collapsed/hidden
Categories
(Chat Core :: Security: OTR, defect, P1)
Tracking
(thunderbird76 fixed)
Tracking | Status | |
---|---|---|
thunderbird76 | --- | fixed |
People
(Reporter: KaiE, Assigned: aleca)
References
Details
Attachments
(1 file, 2 obsolete files)
(deleted),
patch
|
aleca
:
review+
wsmwk
:
approval-comm-beta+
|
Details | Diff | Splinter Review |
When OTR chat is used, multiple consecutive system message may appear quickly.
Currently, the implementation will automatically collapse the most recent ones and hide them behind a plus button.
This can hide important information, like:
"the following message was received without encryption: hello"
We need to find a better solution to this.
Let's handle this after the initial landing was done.
Comment 1•5 years ago
|
||
Is this about the notifications? Notifications have an importance you can set so that important notifications get put on top of lesser important ones.
Reporter | ||
Comment 2•5 years ago
|
||
No. In between the chat messages typed by humans, additional system messages are shown inline. It's about those.
Assignee | ||
Comment 3•5 years ago
|
||
Good stuff, once we're closed to landing the initial OTR implementation, I can do some mock-ups to help find a better solution for those higher priority messages.
Reporter | ||
Updated•5 years ago
|
Updated•5 years ago
|
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 4•5 years ago
|
||
This does the trick for me.
I implemented a more generic noCollapse
attribute tot he conversation object in order to be able to manage that feature independently from OTR, if we will ever need it.
The not-hiding part is done in CSS.
Comment 5•5 years ago
|
||
Assignee | ||
Comment 6•5 years ago
|
||
Why does this not use
notificationOTR
? It is unclear to me what that method is for if we're not using it to send OTR messages... :)
Maybe add a docstring to that method if it only to be used in specific cases?
The notificationOTR
is used only to handle the first message you receive, when the chat buddy asks for a verification, and if you're don't have the focus on the chat.
That method will trigger a chat sound, alongside a counter update, as well as triggering a global notification to answer the verification request.
Indeed, a comment is much needed.
Please update our docs with this new class: https://developer.mozilla.org/en-US/docs/Mozilla/Chat_Core/Message_Styles#Replacement_in_both_messages_and_status_messages
I will once this lands.
We should probably migrate this to out DTN. I'll open a bug on GitHub.
Assignee | ||
Comment 7•5 years ago
|
||
Assignee | ||
Comment 8•5 years ago
|
||
Did you guys have the chance to review this?
Reporter | ||
Comment 9•5 years ago
|
||
(In reply to Alessandro Castellani (:aleca) from comment #6)
The
notificationOTR
is used only to handle the first message you receive, when the chat buddy asks for a verification, and if you're don't have the focus on the chat.
That method will trigger a chat sound, alongside a counter update, as well as triggering a global notification to answer the verification request.
Indeed, a comment is much needed.
Maybe rename the function to notifyVerifyOTR ?
Reporter | ||
Updated•5 years ago
|
Assignee | ||
Comment 10•5 years ago
|
||
Thanks for the review, it needs a small rebase and here's a try-run to be sure we're not breaking any test: https://treeherder.mozilla.org/#/jobs?repo=try-comm-central&revision=b951d62397d81b9390b0f9ea22d5586053a3bf75
Do we have any OTR related tests?
Assignee | ||
Comment 11•5 years ago
|
||
Reporter | ||
Comment 12•5 years ago
|
||
(In reply to Alessandro Castellani (:aleca) from comment #10)
Do we have any OTR related tests?
I'm afraid we don't.
Assignee | ||
Updated•5 years ago
|
Comment 13•5 years ago
|
||
Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/c3d742c66c80
[OTR] Prevent important consecutive inline system messages from being collapsed. r=KaiE
Assignee | ||
Comment 14•5 years ago
|
||
Comment 15•5 years ago
|
||
Comment 16•5 years ago
|
||
bugherder uplift |
Thunderbird 76.0b2:
https://hg.mozilla.org/releases/comm-beta/rev/8a9e4fb8be0e
Updated•5 years ago
|
Description
•