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