mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2025-01-11 16:12:53 +09:00
94228778c9
* wip * wip * fix * clean up * Update tsconfig.json * Update activitypub.ts * wip
15 lines
373 B
TypeScript
15 lines
373 B
TypeScript
import Channel from '../channel.js';
|
|
|
|
export default class extends Channel {
|
|
public readonly chName = 'messagingIndex';
|
|
public static shouldShare = true;
|
|
public static requireCredential = true;
|
|
|
|
public async init(params: any) {
|
|
// Subscribe messaging index stream
|
|
this.subscriber.on(`messagingIndexStream:${this.user!.id}`, data => {
|
|
this.send(data);
|
|
});
|
|
}
|
|
}
|