From 4c9b4cb80d221bf2316cf0c7133813c30ffb377b Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 25 Apr 2018 13:48:02 +0900 Subject: [PATCH] wip --- .../app/common/scripts/streaming/user-list.ts | 17 ++++++++++ .../views/components/list-timeline.vue | 15 +++++---- .../app/desktop/views/components/notes.vue | 31 +++++++++++++++++-- .../views/components/timeline.core.vue | 25 --------------- 4 files changed, 53 insertions(+), 35 deletions(-) create mode 100644 src/client/app/common/scripts/streaming/user-list.ts diff --git a/src/client/app/common/scripts/streaming/user-list.ts b/src/client/app/common/scripts/streaming/user-list.ts new file mode 100644 index 0000000000..30a52b98dd --- /dev/null +++ b/src/client/app/common/scripts/streaming/user-list.ts @@ -0,0 +1,17 @@ +import Stream from './stream'; +import MiOS from '../../mios'; + +export class UserListStream extends Stream { + constructor(os: MiOS, me, listId) { + super(os, 'user-list', { + i: me.token, + listId + }); + + (this as any).on('_connected_', () => { + this.send({ + i: me.token + }); + }); + } +} diff --git a/src/client/app/desktop/views/components/list-timeline.vue b/src/client/app/desktop/views/components/list-timeline.vue index 61300f6f8f..e946453f40 100644 --- a/src/client/app/desktop/views/components/list-timeline.vue +++ b/src/client/app/desktop/views/components/list-timeline.vue @@ -4,6 +4,7 @@