-
Notifications
You must be signed in to change notification settings - Fork 385
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |