Simplify
This commit is contained in:
parent
0329fc29f2
commit
d8b6ec5b77
1 changed files with 21 additions and 36 deletions
|
|
@ -7,10 +7,7 @@ use super::{
|
|||
database::models::{DeviceId, VaultId},
|
||||
websocket::{
|
||||
broadcasts::Broadcasts,
|
||||
models::{
|
||||
ClientCursors, CursorPositionFromServer, WebSocketServerMessage,
|
||||
WebSocketServerMessageWithOrigin,
|
||||
},
|
||||
models::{ClientCursors, CursorPositionFromServer, WebSocketServerMessage},
|
||||
},
|
||||
};
|
||||
use crate::{
|
||||
|
|
@ -126,11 +123,9 @@ impl Cursors {
|
|||
|
||||
self.broadcasts.send_document_update(
|
||||
vault_id,
|
||||
WebSocketServerMessageWithOrigin::new(WebSocketServerMessage::CursorPositions(
|
||||
CursorPositionFromServer {
|
||||
clients: client_cursors,
|
||||
},
|
||||
)),
|
||||
WebSocketServerMessage::CursorPositions(CursorPositionFromServer {
|
||||
clients: client_cursors,
|
||||
}),
|
||||
)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue