Urgent.News

What's breaking now, across hundreds of outlets.

Tech

Read receipts, file sharing and emoji reactions in a website chat: three small features, three design decisions

We recently added three features to our website live chat widget that every messaging app has had for years: sending files both ways, read receipts, and emoji reactions on messages. None of them is hard on its own. Each one still forced a decision we didn't expect, so here are the three decisions and why we made them. 1. A read receipt is a number, not a flag on every message The obvious way to…

The recent addition of several features to Hibira Live Chat, a website live chat widget, includes the ability to send files both ways, read receipts, and emoji reactions on messages. Each of these features required careful decision-making. First, the read receipt system is implemented as a number rather than a simple flag on each message.

This approach reduces the number of writes and events needed when multiple messages are read simultaneously. The system tracks the last message each side has seen and updates the read sequence accordingly. Secondly, the platform trusts the file content over the file name to ensure the correct file type is served. It checks the first few bytes of the uploaded file to determine its type, such as pictures, PDFs, Office documents, text files, or ZIPs.

Any file that does not match the expected format is rejected. Finally, the widget creates a signed link for files that cannot be directly opened in other apps like LINE. This link remains valid for 30 days and cannot be altered to point to a different file. The emoji reaction feature is the simplest of the three, as it involves updating a message's reaction list.

Each user can add or remove a single emoji per message, and the changes are reflected in real-time for all open views.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in Tech

Typed Email Fixtures for Honest React Tests

Email verification tests are very good at producing a green build for the wrong reason. A React test can submit a form, wait for an inbox, click a link, and pass even though the link belongs to…

A free beta that builds your year review from your own data, in the browser

Every service makes its own year-in-review, but none of them can combine your music, shows, books and videos. So we built a small free beta that does it, and it all runs in your browser…

  • Free beta service generates year review from personal data
  • No data uploaded or stored, operates on device
  • Privacy ensured with total and top item saving only

More from Tuesday, 1 December 2026 →