Rename field
This commit is contained in:
parent
cf8c9ebe00
commit
278fa912df
4 changed files with 8 additions and 3 deletions
|
|
@ -4,5 +4,5 @@ import type { DocumentWithCursors } from "./DocumentWithCursors";
|
||||||
export interface ClientCursors {
|
export interface ClientCursors {
|
||||||
userName: string;
|
userName: string;
|
||||||
deviceId: string;
|
deviceId: string;
|
||||||
cursors: DocumentWithCursors[];
|
documentsWithCursors: DocumentWithCursors[];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,5 @@
|
||||||
|
import type { ClientCursors } from "../services/types/ClientCursors";
|
||||||
|
|
||||||
|
export interface DocumentWithMaybeOutdatedClientCursors extends ClientCursors {
|
||||||
|
isOutdated: boolean;
|
||||||
|
}
|
||||||
|
|
@ -48,7 +48,7 @@ impl Cursors {
|
||||||
all_device_cursors.push(ClientCursorsWithTimeToLive::new(ClientCursors {
|
all_device_cursors.push(ClientCursorsWithTimeToLive::new(ClientCursors {
|
||||||
user_name,
|
user_name,
|
||||||
device_id: device_id.to_string(),
|
device_id: device_id.to_string(),
|
||||||
cursors: document_to_cursors,
|
documents_with_cursors: document_to_cursors,
|
||||||
}));
|
}));
|
||||||
|
|
||||||
drop(vault_to_cursors); // Explicitly drop the lock before broadcasting to avoid deadlock
|
drop(vault_to_cursors); // Explicitly drop the lock before broadcasting to avoid deadlock
|
||||||
|
|
|
||||||
|
|
@ -43,7 +43,7 @@ pub struct CursorSpan {
|
||||||
pub struct ClientCursors {
|
pub struct ClientCursors {
|
||||||
pub user_name: String,
|
pub user_name: String,
|
||||||
pub device_id: DeviceId,
|
pub device_id: DeviceId,
|
||||||
pub cursors: Vec<DocumentWithCursors>,
|
pub documents_with_cursors: Vec<DocumentWithCursors>,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(TS, Serialize, Clone, Debug)]
|
#[derive(TS, Serialize, Clone, Debug)]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue