{
  "id": 22908782,
  "title": "Read receipts, file sharing and emoji reactions in a website chat: three small features, three design decisions",
  "url": "https://urgent.news/2026/12/01/read-receipts-file-sharing-and-emoji-reactions-in-a-website-chat",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-12-01T05:23:21.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/hibira/read-receipts-file-sharing-and-emoji-reactions-in-a-website-chat-three-small-features-three-1nb5"
  },
  "original_language": null,
  "account": "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.",
  "summary": "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…",
  "summary_source": "publisher",
  "key_points": [],
  "editors_take": null,
  "opinion": false,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "machine_translated": false,
  "ai_generated": true,
  "disclaimer": "Accounts, briefs, key points, the editor’s take and translations are written by software from other outlets’ reporting and may contain errors. A summary whose summary_source is \"publisher\" is the outlet’s own feed text. Always check the linked original."
}