This commit is contained in:
syuilo
2025-03-17 18:00:31 +09:00
parent 9e5fb89408
commit 30be29a785
13 changed files with 544 additions and 8 deletions

View File

@@ -28,7 +28,7 @@ class ChatChannel extends Channel {
if (typeof params.otherId !== 'string') return;
this.otherId = params.otherId;
this.subscriber.on(`chatStream:${this.user.id}-${this.otherId}`, this.onEvent);
this.subscriber.on(`chatStream:${this.user!.id}-${this.otherId}`, this.onEvent);
}
@bindThis
@@ -39,7 +39,7 @@ class ChatChannel extends Channel {
@bindThis
public dispose() {
// Unsubscribe events
this.subscriber.off(`chatStream:${this.user.id}-${this.otherId}`, this.onEvent);
this.subscriber.off(`chatStream:${this.user!.id}-${this.otherId}`, this.onEvent);
}
}