diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2017-11-14 00:54:16 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2017-11-14 00:54:16 +0900 |
| commit | ab2293aa4c0832f9e57d64aa22d2fce319fbfcb1 (patch) | |
| tree | 0060da35ac7fcb525ba2df2d9ac02d71c10d7b29 /src/api/event.ts | |
| parent | Add access log widget (diff) | |
| download | sharkey-ab2293aa4c0832f9e57d64aa22d2fce319fbfcb1.tar.gz sharkey-ab2293aa4c0832f9e57d64aa22d2fce319fbfcb1.tar.bz2 sharkey-ab2293aa4c0832f9e57d64aa22d2fce319fbfcb1.zip | |
Add messaging widget
Diffstat (limited to 'src/api/event.ts')
| -rw-r--r-- | src/api/event.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/api/event.ts b/src/api/event.ts index 909b0d2556..927883737e 100644 --- a/src/api/event.ts +++ b/src/api/event.ts @@ -25,6 +25,10 @@ class MisskeyEvent { this.publish(`messaging-stream:${userId}-${otherpartyId}`, type, typeof value === 'undefined' ? null : value); } + public publishMessagingIndexStream(userId: ID, type: string, value?: any): void { + this.publish(`messaging-index-stream:${userId}`, type, typeof value === 'undefined' ? null : value); + } + public publishChannelStream(channelId: ID, type: string, value?: any): void { this.publish(`channel-stream:${channelId}`, type, typeof value === 'undefined' ? null : value); } @@ -46,4 +50,6 @@ export const publishPostStream = ev.publishPostStream.bind(ev); export const publishMessagingStream = ev.publishMessagingStream.bind(ev); +export const publishMessagingIndexStream = ev.publishMessagingIndexStream.bind(ev); + export const publishChannelStream = ev.publishChannelStream.bind(ev); |