Skip to content

Commit

Permalink
add bookmarks proposal
Browse files Browse the repository at this point in the history
  • Loading branch information
MTRNord committed Sep 10, 2020
1 parent 89a3663 commit aaae8fa
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions proposals/2766-bookmarks.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# MSC2766: Message Bookmarks

Matrix is currently lacking a feature to bookmark events as a user to provide a way of easy finding
important messages without needing to know a search term.

Note: This is not the same as Element's message pinning feature.

## Proposal

Bookmarks are selected by a User on a Event. This means a user can select a event and add it to the bookmarks.
The bookmark event inside of the account data is used for clients to keep track of bookmarked events.

The bookmarks are saved with the type `dev.nordgedanken.bookmarks` (later: `m.bookmarks`).

It is being saved inside of the rooms account data

```json
{
"events": [
"$12345:example.com",
"$67890:example.com"
]
}
```

## Alternatives

Instead of using the room account data it would be possible to save this in the global account data.
This would be similiar to `m.direct`.

The events are grouped by the room id to allow easier filtering of bookmarks based on rooms.

```json
{
"!12345:example.com": [
"$67890:example.com"
],
"!67890:example.com": [
"$12345:example.com"
]
}
```

## Potential issues

* With the alternative version we might hit the 64k limit sooner.

0 comments on commit aaae8fa

Please sign in to comment.