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:
- Type
/dm <name>in the chat box, or/dm <name> <message>to send the first line straight away./messagedoes the same. - Click someone's name to open their card, then press Message.
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:
- Each person's picture sits beside their messages, and messages sent close together are grouped under one name.
- A date line separates the days.
- Pictures and videos show in the conversation; tap a picture to open it full size. Other files show as a file you can download.
- Reactions show under the message they belong to.
- A reply shows the line it answers above it; tap that quote to jump to the original.
- Scroll up to read older messages. A new message that arrives while you are reading further up does not move what you are reading: a button at the bottom says how many are waiting, and tapping it takes you to them.
- Drag the window taller to see more lines at once.
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:
- The send-to button shows the other person's picture.
- The chat box takes on a colour, so it is clear your next line is private.
- Whatever you type goes only to that person. It does not reach chat or any platform, and paid extras such as highlights do not apply.
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):
- One row per person, with their picture, their last line ("You: …" for yours) and how long ago it was. Pinned people come first, then the newest conversation.
- A new message puts the person's picture at the top of the rail, under Home, with the number of unread messages. Tap it to open the conversation; the picture leaves once you have read it.
- + beside "Direct messages" finds anyone by part of their name and starts a conversation with them.
- Press and hold a row (right-click on a computer), or use ⋯ in the conversation window, for Pin conversation, Close conversation (it leaves the list until they write again) and Leave conversation (it asks first; the other person sees that you left).
- Older conversations with the same person, such as one made by another Matrix app, are folded into the same row. At the start of the conversation, Earlier conversation · N messages · dates opens the older one to read; you always write in the current one.
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:
- messages sent before this device was set up, when the device has not been unlocked with the recovery key
- messages sent while the person had not yet accepted the conversation
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:
- conversations that already exist are not touched, so a banned person can still write in them;
- someone using another Matrix app, such as Element, is not stopped by it;
- the word filter and the link gate do not check direct messages, and there is no report button in a conversation.
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".
- Up to 300 characters.
- One announcement per mod every 30 seconds, so it cannot be used to flood everyone's screen.
- It is not saved anywhere and is not sent to the platforms; someone who opens the site later does not see it. Each one is recorded in the mod log, so you can see who announced what.
Next: Home and forums