zulip/static
Steve Howell c11de1e3a7 user profile cards: Fix bug with deactivated user.
We had a user have problems with the user
profile menus that you get when you click
on either sender avatars or mention pills.

If a deactivated user had a long enough email
that we would normally want to un-hide the clipboard
icon for them, we would crash inside of
`init_email_clipboard`, because the icon isn't
there for them.  If the user didn't have the
console open to see the crash, the symptom
became that you would get multiple cards
visible and kind of "stuck".

I chose to fix this by just making the code
defensive with respect to the absence of the
icon, instead of short-circuiting it for
deactivated users.

It's a bit odd that we still have an element
matching `.user_email_popover` in the profile
card for deactivated users, since that element
doesn't actually include an email, but it instead
says "(This user has been deactivated)".  I
considered removing the class, but the CSS
that we use for emails kind of applies here
too.

Testing this is a kind of a pain, as you want
either long emails or to just temporarily hack
this condition to true:

    if (this.clientWidth < this.scrollWidth) {
        // ...
    }

And then test with a deactivated user, of course.

Fixes #14473
2020-04-26 11:12:45 -07:00
..
assets styles: Finish removing manual antialiasing configuration. 2019-08-30 14:51:52 -07:00
audio notifications: Add a setting for changing the notification sound. 2018-12-09 21:25:30 -08:00
generated
html static: Serve webpack bundles from the root domain. 2020-04-10 00:48:02 -07:00
images integrations: Add bot avatars for existing integrations with logos. 2020-04-22 17:45:30 -07:00
js user profile cards: Fix bug with deactivated user. 2020-04-26 11:12:45 -07:00
shared typeahead: Convert to ES6 module. 2020-02-19 14:36:42 -08:00
styles browser_support: Drop support for Internet Explorer. 2020-04-23 17:50:28 -07:00
templates settings: Fix i18n tagging of (you) to be consistent. 2020-04-23 17:28:34 -07:00
third typeahead: Close/open typeahead with searchbox. 2020-04-17 13:37:04 -07:00
.eslintrc.json lint: Delegate console.log check to ESLint. 2020-02-07 14:09:47 -08:00
.gitignore team: Generate team page data using cron job. 2020-04-08 12:52:31 -07:00
favicon.ico