Editing Messages

Rocket.Chat provides several features for composing messages and for editing them after they have been sent.

Composing messages

Cursor movement while composing a message

As you compose a message, you can move the cursor using the arrow keys. When you hit the Up Arrow or Down Arrow keys, the cursor moves to the location determined by the wrapping of the text:

Move the cursor to the beginning or end of a message

Holding Alt or Command while hitting an arrow key moves to the beginning or end of the message:

Editing messages

To edit a message, click on the gear icon next to the message, and then click on the pencil icon. Alternatively, in the message input box, hit the Up Arrow.

The administrator of a Rocket.Chat team sets the permissions for who can edit messages. (See edit-message in the list of permissions.) By default, only administrators, moderators, and admins can edit messages.

Switching messages

If the cursor is at the beginning of a message, hitting the Up Arrow switches to editing the previous message that you wrote:

Similarly, if the cursor is at the end of a message, hitting the Down Arrow switches to editing the next message that you wrote.

Drafts of edits

Rocket.Chat saves a draft of your edits to messages. That way, you can return to the draft of an edit after switching to another message and back. Hitting ESCAPE discards a draft of an edit.

Emptying message deletes it

Editing the message so that it has no content is interpreted as deleting the message:

(You can also delete a message by clicking on the gear icon next to the message and clicking on the trash icon.)