1
0
forked from mirror/misskey
This commit is contained in:
tamaina 2021-09-12 01:37:55 +09:00
parent 217bf12aab
commit 0714c56c41

View File

@ -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;