mirror of
https://github.com/m1k1o/neko.git
synced 2026-11-03 00:11:48 -06:00
Revert "new WS ControlRequest data type"
This reverts commit 70e8b215cb.
This commit is contained in:
@@ -29,7 +29,6 @@ export type WebSocketPayloads =
|
||||
| MemberListPayload
|
||||
| Member
|
||||
| ControlPayload
|
||||
| ControlRequestPayload
|
||||
| ControlClipboardPayload
|
||||
| ControlKeyboardPayload
|
||||
| ChatPayload
|
||||
@@ -113,10 +112,6 @@ export interface ControlPayload {
|
||||
id: string
|
||||
}
|
||||
|
||||
export interface ControlRequestPayload {
|
||||
keyboard_layout: string
|
||||
}
|
||||
|
||||
export interface ControlTargetPayload {
|
||||
id: string
|
||||
target: string
|
||||
|
||||
@@ -64,7 +64,7 @@ export const actions = actionTree(
|
||||
}
|
||||
|
||||
if (!getters.hosting) {
|
||||
$client.sendMessage(EVENT.CONTROL.REQUEST, { keyboard_layout: accessor.settings.keyboard_layout })
|
||||
$client.sendMessage(EVENT.CONTROL.REQUEST)
|
||||
} else {
|
||||
$client.sendMessage(EVENT.CONTROL.RELEASE)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user