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

zulip / zulip-mobile / 6963 / 1
47%
master: 47%

Build:
DEFAULT BRANCH: master
Ran 22 Sep 2018 12:51AM UTC
Files 363
Run time 19s
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

22 Sep 2018 12:43AM UTC coverage: 50.076% (+0.008%) from 50.068%
COVERALLS_REPO_TOKEN=4eYQDtWoBJlDz2QkxoQ2UcnmJFcOB7zkv

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

Source Files on job 6963.1 (COVERALLS_REPO_TOKEN=4eYQDtWoBJlDz2QkxoQ2UcnmJFcOB7zkv)
  • Tree
  • List 0
  • Changed 2
  • Source Changed 2
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 22650
  • Travis Job 6963.1
  • bda7b662 on github
  • Prev Job for COVERALLS_REPO_TOKEN=4eYQDtWoBJlDz2QkxoQ2UcnmJFcOB7zkv on master (#6962.1)
  • Next Job for COVERALLS_REPO_TOKEN=4eYQDtWoBJlDz2QkxoQ2UcnmJFcOB7zkv on master (#6964.1)
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