Homec4science

Conpherence - fix 0 messages in header race condition

Authored by Bob Trahan <btrahan@phacility.com> on Mar 16 2015, 22:28.

Description

Conpherence - fix 0 messages in header race condition

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

Reviewers: chad, epriestley

Reviewed By: epriestley

Subscribers: Korvin, epriestley

Maniphest Tasks: T7545

Differential Revision: https://secure.phabricator.com/D12091

Details

Committed
Bob Trahan <btrahan@phacility.com>Mar 16 2015, 22:28
Pushed
aubortJan 31 2017, 17:16
Parents
rPHcf54194ef56c: Improve chat column behavior for newline in empty text box
Branches
Unknown
Tags
Unknown

Event Timeline

Bob Trahan <btrahan@phacility.com> committed rPHc21301d153a9: Conpherence - fix 0 messages in header race condition (authored by Bob Trahan <btrahan@phacility.com>).Mar 16 2015, 22:28