channel
This commit is contained in:
parent
217bf12aab
commit
0714c56c41
1 changed files with 2 additions and 1 deletions
|
@ -5,6 +5,7 @@ import { isMutedUserRelated } from '@/misc/is-muted-user-related';
|
|||
import { isBlockerUserRelated } from '@/misc/is-blocker-user-related';
|
||||
import { PackedNote } from '@/models/repositories/note';
|
||||
import { User } from '@/models/entities/user';
|
||||
import { StreamMessages } from '../types';
|
||||
|
||||
export default class extends Channel {
|
||||
public readonly chName = 'channel';
|
||||
|
@ -52,7 +53,7 @@ export default class extends Channel {
|
|||
}
|
||||
|
||||
@autobind
|
||||
private onEvent(data: any) {
|
||||
private onEvent(data: StreamMessages['channel']['spec']) {
|
||||
if (data.type === 'typing') {
|
||||
const id = data.body;
|
||||
const begin = this.typers[id] == null;
|
||||
|
|
Loading…
Reference in a new issue