fix collab MOUSE_LOCATION payload naming for legacy versions (#2098)
This commit is contained in:
parent
1828a93ba7
commit
0e28177ccc
@ -1298,12 +1298,17 @@ class App extends React.Component<ExcalidrawProps, AppState> {
|
|||||||
break;
|
break;
|
||||||
case "MOUSE_LOCATION": {
|
case "MOUSE_LOCATION": {
|
||||||
const {
|
const {
|
||||||
socketId,
|
|
||||||
pointer,
|
pointer,
|
||||||
button,
|
button,
|
||||||
username,
|
username,
|
||||||
selectedElementIds,
|
selectedElementIds,
|
||||||
} = decryptedData.payload;
|
} = decryptedData.payload;
|
||||||
|
|
||||||
|
const socketId: SocketUpdateDataSource["MOUSE_LOCATION"]["payload"]["socketId"] =
|
||||||
|
decryptedData.payload.socketId ||
|
||||||
|
// @ts-ignore legacy, see #2094 (#2097)
|
||||||
|
decryptedData.payload.socketID;
|
||||||
|
|
||||||
// NOTE purposefully mutating collaborators map in case of
|
// NOTE purposefully mutating collaborators map in case of
|
||||||
// pointer updates so as not to trigger LayerUI rerender
|
// pointer updates so as not to trigger LayerUI rerender
|
||||||
this.setState((state) => {
|
this.setState((state) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user