Skip to main content
Blog
Building in Public

Who Read It, Who Said It, and Which of You Is Talking

Two ticks that finally mean what they say, a message you can take back without pretending it never existed, and a room where all of your names can talk to each other. What changed in OrangeCat Messages this week, and why one of those things exists nowhere else.

Cato5 min read

Every messenger has ticks, and everyone reads them the same way: one tick, it left your phone; two, it reached theirs; coloured, they read it.

Until this week OrangeCat had only two of those three. One tick, sent. Two, read. The step in between, it is on their phone but they have not opened it, did not exist, because nothing ever told us when a message reached a phone. Behind the scenes the server still called every stored message "delivered", which was a guess written down as a fact.

That is fixed. Fixing it pulled a whole set of things with it, and one of them is a room no other messenger has.

Two ticks that mean it

Now, when a message reaches the other person's phone, their app says so, and only then does a second, grey tick appear. When they open the conversation, the ticks turn dark.

Long-press one of your own messages and tap Info, and you get the plain record: for each person, when it arrived and when they read it.

Message info. Maya read it at 15:26. Above the line, what the message says now; below, what it said before it was edited.

We left one thing out of that list on purpose. If the Cat or one of your bots is in the conversation, it is not listed as "not delivered yet". A bot has your message the moment it is stored, so a row saying otherwise would be a small lie of its own.

Taking a message back, honestly

There are now two ways to delete.

Delete for me takes the message off your screen. Everyone else still has it.

Delete for everyone does what the words say. The message's place stays in the conversation, marked "This message was deleted", and its words are erased from our database, not just hidden behind a flag. If it was the newest message, the preview in the conversation list goes too, which is where a "deleted" message usually lingers.

The marker matters. A conversation where lines silently vanish is one you cannot trust afterwards. A marker says: something was here, and the person who wrote it took it back.

Editing follows the same idea. Tap edited under a message and you can read what it said before. Anyone in the conversation can. On a platform whose whole pitch is transparent money, a quietly rewritten "I'll pay you Friday" would be a strange thing to allow.

Under the hood: what "delivered" is made of

The Messenger (the @bitbaum/chatkit package) reports a delivery whenever messages reach the viewer's device: when the conversation list loads, when a conversation opens, and when a push arrives. Each report moves a mark, last_delivered_at, on that person's row in the conversation, as last_read_at already did for reading. Reports from one list load go in one request, not one per conversation.

Marks alone cannot answer "when did Maya read this message", because a mark only remembers its latest position. So a short log, message_receipt_marks, keeps the moments: one row of under a hundred bytes, written only when there was something new to receive or read. Opening a conversation ten times with nothing new writes nothing. A message's read time is the first read moment at or after it was sent.

Edits keep the previous words in message_edits. Deleting a message for everyone empties its words and removes its edits in the same request. Every one of these tables is service-role only: the API decides who may read them, the database never lets a browser ask directly.

Forward, pin, mute

Three things you would expect, now here.

Forward sends a copy of any message to up to five of your conversations. It arrives marked "Forwarded".

Forward: choose the conversations, see how many before you send.

A forwarded photo or video is not stored a second time. The copy points at the same file, and the file is only removed once nothing points at it. Storage is the one cost of a messenger that grows forever, so a video forwarded to five friends should cost one video.

Pin keeps a conversation at the top of your list. Mute takes it out of the unread count in the navigation. Only you see either. The other people in the conversation are never told you pinned or muted them.

One person, several names

This is the part nobody else has built.

OrangeCat lets one person hold several names. Not masks over one account: whole accounts, each with its own profile, inbox, wallet and history. The poet Fernando Pessoa called his versions of this heteronyms, and wrote as dozens of them. A designer might sell under a studio name, write under a pen name and fund causes under a third. The link between those names and the person behind them is private by construction. Nothing anyone else can see connects them.

Until this week, those names lived side by side and never met. Each had its inbox; you switched between them in "Writing as", above your messages.

Now they can meet, in a room we call the Workshop.

flowchart TD
  P[You] --> W((The Workshop))
  A[Your studio name] --> W
  B[Your pen name] --> W
  O[Anyone else] -. never .-> W
  H[A name you hand over] -. leaves at once .-> W

Open it from "Writing as". It is a conversation whose only members are you and your names. Just above the message box you choose who speaks: draft a post as your pen name, then answer it as yourself, and keep the exchange. Rehearse a pitch in one voice and criticise it in another. Or simply keep the notes each of your lives needs, in one place, without signing out of anything.

Two rules keep it safe.

Nobody else can ever be in it. The server checks, on every message, that the conversation is your Workshop and that the name you chose is one of yours.

A name can leave your hands. You can hand one over to another person, and that is the moment it leaves the Workshop, automatically, before its new owner can open anything. The same happens if a name is given its own way to sign in. A new owner should never read what your names said to each other.

Under the hood: the Workshop's guard rails

The room is an ordinary conversation, so replies, reactions, search and files work in it unchanged. What makes it the Workshop is one row in identity_workshops, holder to conversation, readable only by the service role, like the table that links a holder to its names.

Speaking as another name uses the authority the circle already has: a session for any of your names may become a session for any other (ADR-0014, D3). In the Workshop that power is used without switching sessions, and only there: the send route asks maySpeakAs, which reads your circle fresh each time and compares the conversation with your Workshop. Anywhere else, speakAs is refused.

Leaving is enforced by the database, not by code that has to remember: a trigger on the identity link removes the name from its holder's Workshop when the link is deleted (a hand-over) or when the name gets a way in of its own. The Workshop is never created for a person with one name, and never created by opening Messages: only by choosing it.

What it does not hide: a room holding two names is a record that they share a keeper. Only its members can see it, and an operator, as the identity design already allows. That is the honest limit of a server-side room, and the reason end-to-end encryption is on the roadmap.

What is still missing

Voice messages now have Show text: tap it and read what was said instead of listening. The words are made once and kept, on your own Groq or OpenAI key if you saved one, otherwise from your daily free allowance.

Not built yet: disappearing messages, polls, link previews made on your device rather than our server, and end-to-end encryption. Today your messages are stored on our server and can be read by it. When that changes, it will be the headline, not a footnote.

The ticks were the smallest change and the one we were most embarrassed by. A messenger is a promise about what happened to your words. This week it keeps more of them.