Skip to content
← All work

Work · Workspace messaging app · 2025 – 2026

Reactions, editing and a media gallery for a realtime messaging app

Chat features built across a React Native app and an Elixir backend, where the hard part is keeping every device in agreement.

Role
Full-stack: mobile app and backend
When
2025 – 2026
Built with
React NativeExpoGraphQLElixirPhoenix ChannelsDynamoDB

The problem

The app runs on iOS, Android and web, and people use it on poor connections. A feature that looks simple, like tapping a reaction, has to stay correct when two people act at once, when a message arrives twice, or when the phone was offline for an hour.

I worked on both sides of each feature, so the client and the server were designed together.

The path of a single action

  1. 01

    Tap in the app

    The screen updates at once, tagged with a request id

  2. 02

    Realtime channel

    The action travels over a persistent connection

  3. 03

    Backend applies it

    Duplicates and races are resolved in one place

  4. 04

    Broadcast to everyone

    Other devices update; the sender matches the id and settles

Key decisions

  1. 01

    Optimistic, but reconcilable

    Reactions appear the moment you tap. Each carries a request id, so when the server’s broadcast comes back the app recognises its own action instead of counting it twice.

  2. 02

    A sequence number for media

    Each attachment in a conversation gets a running number. The gallery asks for a range of numbers, which makes paging through hundreds of photos and videos cheap and predictable.

  3. 03

    A gallery that holds its place

    Older media loads as you scroll, and the grid keeps its scroll position while new rows arrive. Media from deleted messages is marked by a backfill so it never appears.

  4. 04

    Fixing the offline queue

    Messages written offline were being re-sent in growing multiples when the connection returned. I traced it to how the queue retried, and fixed it so each message sends exactly once.

  5. 05

    Editing without surprises

    Message editing works on replies and on long messages, and every other device sees the edit in place.

Where it landed

  • Reactions, message editing, archiving, announcement-only rooms and the paged media gallery shipped on iOS, Android and web.
  • Each change went out with before and after recordings, so reviewers could see the behaviour and not only the code.

Company names are withheld under confidentiality. Diagrams are redrawn for this site, and I am happy to go into more detail in conversation.