Add markRoomReadMsecDelay setting

This commit is contained in:
miruka 2020-06-01 18:57:17 -04:00
parent 5bc5249ccf
commit 835d1c486f
3 changed files with 7 additions and 1 deletions

View File

@ -10,6 +10,11 @@ and this project adheres to
## Unreleased ## Unreleased
### Added
- `markRoomReadMsecDelay` to configure how long in milliseconds Mirage will
wait before marking a focused room as read, defaults to `200`
### Changed ### Changed
- **Unread message/highlight counters**: - **Unread message/highlight counters**:

View File

@ -239,6 +239,7 @@ class UISettings(JSONDataFile):
"hideProfileChangeEvents": True, "hideProfileChangeEvents": True,
"hideMembershipEvents": False, "hideMembershipEvents": False,
"hideUnknownEvents": True, "hideUnknownEvents": True,
"markRoomReadMsecDelay": 200,
"maxMessageCharactersPerLine": 65, "maxMessageCharactersPerLine": 65,
"ownMessagesOnLeftAboveWidth": 895, "ownMessagesOnLeftAboveWidth": 895,
"theme": "Midnight.qpl", "theme": "Midnight.qpl",

View File

@ -353,7 +353,7 @@ Rectangle {
} }
Timer { Timer {
interval: 1000 interval: window.settings.markRoomReadMsecDelay
running: running:
(chat.roomInfo.unreads || chat.roomInfo.highlights) && (chat.roomInfo.unreads || chat.roomInfo.highlights) &&