mirror of
https://github.com/jkingsman/Remote-Terminal-for-MeshCore.git
synced 2026-08-06 08:43:36 +02:00
Optimize jump to unread to reduce flicker on large backlog load.
This commit is contained in:
@@ -960,6 +960,13 @@ class UnreadCounts(BaseModel):
|
||||
last_message_times: dict[str, int] = Field(
|
||||
default_factory=dict, description="Map of stateKey -> last message timestamp"
|
||||
)
|
||||
first_unread_ids: dict[str, int | None] = Field(
|
||||
default_factory=dict,
|
||||
description=(
|
||||
"Map of stateKey -> id of the oldest unread message. Lets the client place "
|
||||
"the unread divider (and jump to it) without paging back through history."
|
||||
),
|
||||
)
|
||||
last_read_ats: dict[str, int | None] = Field(
|
||||
default_factory=dict, description="Map of stateKey -> server-side last_read_at boundary"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user