• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

zulip / zulip-mobile / 6963
47%

Build:
DEFAULT BRANCH: master
Ran 22 Sep 2018 12:51AM UTC
Jobs 1
Files 363
Run time 21s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
6963

push

travis-ci

gnprice
autocomplete: Avoid rendering a huge list of emoji choices.

Fixes #2987.  When you type a message with a colon in it, like
"Here you go:", and try to send it... the app effectively freezes.

On closer study, everything gets unstuck if you wait a minute or two.
And one thing that's certainly happening in this case is that our
`AutocompleteView` is making an `EmojiAutocomplete` with a filter of
just ''; the resulting list of emoji will be all ~1500 or so of them.
The `AutocompleteView` ensures the `EmojiAutocomplete` isn't *visible*
when the filter is empty... but it is *there*.

We could kludge this by short-circuiting things when the filter is
empty, but we'd still have a lot of emoji after typing something
that's a popular prefix for emoji names... like `:s`, which matches a
total of 222 emoji in our standard set.  And, in fact, trying the
repro with a message like ":s" produces the same symptoms -- just for
not for quite as long.

On the other hand, trying this with `@` or `#`, even on a busy org
with tons of users and streams like chat.zulip.org, causes no problem;
so the issue doesn't seem to affect PeopleAutocomplete or
StreamAutocomplete.

Seems like we must have had some pretty severe performance regression
in the emoji autocomplete list.  We should fix that, but first let's
stop the bleeding.  It's currently impossible to scroll around the
list due to another issue (#2917), so we can set the limit tightly
because more emoji than fit on the screen won't do any good anyway.

1002 of 2097 branches covered (47.78%)

Branch coverage included in aggregate %.

1953 of 3804 relevant lines covered (51.34%)

49.95 hits per line

Jobs
ID Job ID Ran Files Coverage
1 6963.1 (COVERALLS_REPO_TOKEN=4eYQDtWoBJlDz2QkxoQ2UcnmJFcOB7zkv) 22 Sep 2018 12:51AM UTC 0
50.08
Travis Job 6963.1
Source Files on build 6963
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #6963
  • bda7b662 on github
  • Prev Build on master (#6962)
  • Next Build on master (#6964)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc