1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-24 03:24:18 +02:00
This commit is contained in:
syuilo
2026-04-20 14:32:46 +09:00
parent e224bdf5e4
commit 6aa741f8d4
5 changed files with 218 additions and 98 deletions

View File

@@ -182,6 +182,22 @@ export class RoomController {
}
}
public changeHeyaType(type: RoomState['heya']['type']) {
if (this.worker != null) {
this.worker.postMessage({ type: 'changeHeyaType', heyaType: type });
} else if (this.engine != null) {
this.engine.changeHeyaType(type);
}
}
public updateHeyaOptions(options: RoomState['heya']['options']) {
if (this.worker != null) {
this.worker.postMessage({ type: 'updateHeyaOptions', heyaOptions: options });
} else if (this.engine != null) {
this.engine.updateHeyaOptions(options);
}
}
public beginSelectedInstalledObjectGrabbing() {
if (this.worker != null) {
this.worker.postMessage({ type: 'beginSelectedInstalledObjectGrabbing' });