Page MenuHomePhabricator

Conpherence - fix 0 messages in header race condition
ClosedPublic

Authored by btrahan on Mar 16 2015, 9:18 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Dec 6, 7:51 AM
Unknown Object (File)
Wed, Dec 4, 6:17 AM
Unknown Object (File)
Tue, Dec 3, 1:32 PM
Unknown Object (File)
Wed, Nov 27, 2:09 PM
Unknown Object (File)
Sat, Nov 23, 12:52 PM
Unknown Object (File)
Sat, Nov 23, 6:24 AM
Unknown Object (File)
Tue, Nov 19, 12:50 PM
Unknown Object (File)
Nov 15 2024, 1:11 AM
Subscribers

Details

Summary

Fixes T7545. Turns out we had the right logic to handle this basically, and just needed to variablize the CSS class that gets added / removed as appropos.

Note the new behavior is to keep the icon highlighted just with no number. This emulates how it would work if e.g. there was no unread message in the first place and you just clicked the message icon to invoke the message menu.

Test Plan

had a durable conpherence open for user A with user B. used a separate browser to send message as user B. reloaded as user A - saw new message in conpherence durable column and the "1" unread icon. I then clicked the "1" and saw it disappear as expected

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

btrahan retitled this revision from to Conpherence - fix 0 messages in header race condition.
btrahan updated this object.
btrahan edited the test plan for this revision. (Show Details)
btrahan added reviewers: epriestley, chad.
epriestley edited edge metadata.

keep the icon highlighted just with no number; this emulates how it would work if e.g. there was no unread message in the first place

This seems incongruous, or maybe I'm reading it wrong -- I'd expect it to be un-highlighted if there's no number, but I think that's how it works if there are no unread messages? Possible I just don't know how the product works.

Specifically, I'd expect this to look like there are no unread messages -- effectively, for receiving the chat to "count" as reading the message.

This revision is now accepted and ready to land.Mar 16 2015, 9:22 PM
btrahan edited edge metadata.

If you click on either the notification or conpherence alert UI with nothing "unread", they both highlight and invoke a menu below them.

The UI resembles this base state now (as opposed to having an erroneous "0"). It is still highlighted though.

This revision was automatically updated to reflect the committed changes.