Sync server-specific unicode emoji with local cache at startup #1250
Labels
area: emoji
enhancement
New feature or request
further discussion required
Discuss this on #zulip-terminal on chat.zulip.org
FUTURE
version parity: 6
Our current set of supported unicode emoji are irregularly fetched from the current master/main branch using
tools/fetch-unicode-emoji-data
, translated using another script, and then integrated via a commit with the resulting changes. This uses a file internal to the server source exposed via github.Zulip 6.0 is expected to support a way to explicitly expose the unicode emoji in use and support providing a url to fetch from and a way to locally cache the url contents via a hash.
The current planned approach is to use cache-control headers, which should be achievable using something like
requests-cache
. This may also connect with work towards a central configuration location, eg. #678Unicode emoji are not updated frequently, but as part of this work we likely want to ensure that code that handles emoji and reactions can cope if the emoji are updated, such as if a server is upgraded. We can check with the web app to see how they handle some of these situations, but an error like zulip/zulip-mobile#5430 for mobile motivated this addition to the server.
We'll also want to consider interoperating with older server versions that don't provide this.
server_emoji_data_url
in Redux, when available zulip-mobile#5460The text was updated successfully, but these errors were encountered: