Black Branch/Docs
All sections

Direct messages

This page is for you and your viewers. After reading it you can start and accept private conversations, and know what keeps them private and what does not.

Signed-in viewers can message each other privately. A direct message opens in a small window in the chat column, so nobody has to leave the stream to answer one.

A direct message started on your site is end-to-end encrypted from the start: the site creates it as a private room with encryption switched on. (One started from another Matrix app, such as Element, follows that app's choice; if it arrives unencrypted, it shows Not encrypted with an Enable E2EE button.) Each message is locked on the sender's device and unlocked only on the reader's. Your server stores the messages but cannot read them, and neither can you as the site owner. That is deliberate. A private message on a site you run should be private from you too, and it means a break-in on your server cannot leak people's conversations. They are carried by your install's own Matrix chat server, the same one behind the community rooms.

Before the first message

Encryption works best when both people have set it up on their device. Each viewer does this once, from the avatar menu: the row that says encryption needs setup opens Devices & Security, which makes a recovery key. The steps are on Encryption and your recovery key, and new accounts are offered the same thing in the setup steps on Home.

The recovery key is what lets a viewer read their direct messages on a new phone or computer. Without it, messages from before that device cannot be read on it, and nobody, including you, can recover them.

Starting a conversation

There are two ways:

The name can be part of a username or a display name, anywhere in it: /dm free finds "JonFreeholder". While you type the name, the chat box suggests every account it can mean, not only the people in chat, with the matching part in bold. Only a name typed in full, which exactly one account on your server has, opens straight away (and sends the line you typed with it). Anything else asks Who do you mean by "…"? and lists the matches with their full Matrix ids, so a line never goes to someone you did not mean. A partial name needs at least two letters.

You can only message people who have an account on your site. Someone who only chats from Twitch or Kick has no account here, so their card has no Message button. You cannot message yourself or a bot.

The window says it is opening the conversation while it connects. While the messages load it shows grey placeholder lines, then the conversation, newest at the bottom. A new conversation says No messages yet and points you to the chat box below.

Reading a conversation

A conversation looks like a channel in the community rooms, in the same layout you chose there:

Hover a message (or press and hold it on a phone) for its actions: React, Reply, Copy text, Copy link, and Delete on your own messages. To reply, choose Reply: the window shows Replying to <name> with a ✕ to cancel, and your next line is sent as the reply. You can react and reply once you have accepted the conversation.

The conversation counts as read once you have accepted it and scrolled to its newest message, the same rule as a community channel.

Sending a line while you are reading further up takes you back down to it. Tapping a name opens that person's card; in a direct message the card has no Kick or Ban, because a private conversation is not moderated from inside it: use Block instead.

🖼 Image: the DM window above the chat box, with the send-to button showing the other person's picture

Writing in a conversation

While a conversation is open, the chat box belongs to it:

Press the send-to button to put the conversation away. The window slides off and the chat box goes back to normal chat. This is how you switch back: there is no separate close button to hunt for while you are typing.

Only one conversation window is open at a time. If more arrive, they wait their turn and open one after another.

When someone messages you

A new conversation from someone else opens as a window saying <name> wants to send you messages, with an Accept button. Nothing they send is shown until you accept, so a stranger cannot push text onto your screen.

If you do not accept, the window closes itself after a minute (Closes in a minute unless you accept) and comes back with their next message.

Your conversations

Every conversation is also in the community view, under Home on the spaces rail (see Community rooms):

A conversation with no message in it, such as one opened and never written in, is not listed, and the other person gets nothing until the first line is sent.

When a conversation is not protected

If encryption is not in force, the window shows a red line saying why, and the chat box turns red instead of its usual colour. You can still send, but you should know the message is not protected.

Red line What it means What to do
Encryption isn't running in this browser This browser could not start encryption. Try another browser, or set up encryption in Devices & Security.
This conversation isn't encrypted. The conversation has encryption off. Open it in the community view and use Enable E2EE. Once on, it cannot be turned off.
<name> hasn't set up encrypted messages yet The other person has no device set up for encryption, so they may not be able to read it. Ask them to set up encryption, as in "Before the first message".

"can't be read on this device"

Some lines can show as can't be read on this device. This is how end-to-end encryption works, not a fault. It happens with:

If it happens on a new device, enter the recovery key in Devices & Security. Messages that were never meant for this device stay unreadable. See Encryption.

Bans and safety

Someone who is banned or timed out on your site cannot start a new direct message while it runs: Message and /dm answer "You can't send direct messages while you're banned." This check runs in the site, not on the homeserver, so it covers what happens on the site:

Because direct messages are end-to-end encrypted, neither you nor your mods can read them. If someone is harassing a person by direct message, a mod can ban the sender on the site; that stops new conversations started from the site, not messages in one that already exists. See What a ban covers.

How long messages are kept

Your server serves direct messages for 180 days, then stops serving them and removes them from its database at its next clean-up. Copies already on the two people's devices are not touched, and files sent in them stay on the server. This is the server's retention policy for every room without its own setting.

Announcements (mods)

Mods can show a short message to everyone who has the site open: /announce <text> (also /everyone, or /dm all and /dm everyone). It appears as an Announcement window in every open chat column for 20 seconds. Use it for things like "Starting in 5 minutes" or "Raid incoming".

Next: Home and forums

← Your site, feature by feature