Add room bookmarking: bookmarks are always on top

Introduce a bookmark system for rooms:
a room bookmarked will always appear on top of every other
(for a given account).

Bookmarking can be done through context menu on targeted room
(as well as un-bookmarking) or through settings.json
(key roomBookmarkIDs) for permanent bookmark.
roomBookmarkIds is a {account_user_id: [room_id]} dict.
This commit is contained in:
koudja
2020-10-16 23:36:59 +02:00
committed by miruka
parent 38360b101a
commit 52b0bb18cb
6 changed files with 37 additions and 1 deletions

View File

@@ -291,6 +291,7 @@ class UISettings(JSONDataFile):
"theme": "Midnight.qpl",
"writeAliases": {},
"zoom": 1.0,
"roomBookmarkIDs": {},
"media": {
"autoLoad": True,