add main stream
This commit is contained in:
parent
08576c49de
commit
06c0373be9
3 changed files with 55 additions and 27 deletions
|
|
@ -15,7 +15,7 @@ import { UserProfile } from '@/models/entities/user-profile';
|
|||
import { publishChannelStream, publishGroupMessagingStream, publishMessagingStream } from '@/services/stream';
|
||||
import { UserGroup } from '@/models/entities/user-group';
|
||||
import { PackedNote } from '@/models/repositories/note';
|
||||
import { StreamEventEmitter, UserEvent } from './types';
|
||||
import { StreamEventEmitter, UserEvents } from './types';
|
||||
|
||||
/**
|
||||
* Main stream connection
|
||||
|
|
@ -65,7 +65,7 @@ export default class Connection {
|
|||
}
|
||||
|
||||
@autobind
|
||||
private onUserEvent(ev: UserEvent) { // { type, body }と展開すると型も展開されてしまう
|
||||
private onUserEvent(ev: UserEvents) { // { type, body }と展開すると型も展開されてしまう
|
||||
switch (ev.type) {
|
||||
case 'follow':
|
||||
this.following.add(ev.body.id);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue