Add markRoomReadMsecDelay setting
This commit is contained in:
parent
5bc5249ccf
commit
835d1c486f
|
@ -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**:
|
||||||
|
|
|
@ -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",
|
||||||
|
|
|
@ -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) &&
|
||||||
|
|
Loading…
Reference in New Issue
Block a user