moved friend cursor data aggregation from frontend to backend
This commit is contained in:
@@ -12,7 +12,10 @@ use crate::{
|
||||
},
|
||||
interaction::{InteractionDeliveryFailedDto, InteractionPayloadDto},
|
||||
},
|
||||
services::{cursor::CursorPositions, ws::OutgoingFriendCursorPayload},
|
||||
services::{
|
||||
cursor::CursorPositions, friend_cursor::FriendCursorPositionsDto,
|
||||
ws::OutgoingFriendCursorPayload,
|
||||
},
|
||||
};
|
||||
|
||||
#[derive(Debug, Clone, Serialize, Deserialize, Type, Event)]
|
||||
@@ -47,6 +50,10 @@ pub struct UserStatusChanged(pub UserStatusPayload);
|
||||
#[tauri_specta(event_name = "friend-cursor-position")]
|
||||
pub struct FriendCursorPositionUpdated(pub OutgoingFriendCursorPayload);
|
||||
|
||||
#[derive(Debug, Clone, Serialize, Deserialize, Type, Event)]
|
||||
#[tauri_specta(event_name = "friend-cursor-positions")]
|
||||
pub struct FriendCursorPositionsUpdated(pub FriendCursorPositionsDto);
|
||||
|
||||
#[derive(Debug, Clone, Serialize, Deserialize, Type, Event)]
|
||||
#[tauri_specta(event_name = "friend-disconnected")]
|
||||
pub struct FriendDisconnected(pub FriendDisconnectedPayload);
|
||||
|
||||
Reference in New Issue
Block a user