diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2018-02-23 02:13:40 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-02-23 02:13:40 +0900 |
| commit | d1785848289397b9e8242edd9bd87c5906fe5eb7 (patch) | |
| tree | 8cb4ff23a694f95bc8f4895698b6202090c26554 /src/web/app/common/scripts/streaming | |
| parent | Merge pull request #1097 from syuilo/refactor (diff) | |
| parent | wip (diff) | |
| download | misskey-d1785848289397b9e8242edd9bd87c5906fe5eb7.tar.gz misskey-d1785848289397b9e8242edd9bd87c5906fe5eb7.tar.bz2 misskey-d1785848289397b9e8242edd9bd87c5906fe5eb7.zip | |
Merge pull request #1116 from syuilo/vue-#972
Migrate to Vue
Diffstat (limited to 'src/web/app/common/scripts/streaming')
| -rw-r--r-- | src/web/app/common/scripts/streaming/home-stream.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/web/app/common/scripts/streaming/home-stream.ts b/src/web/app/common/scripts/streaming/home-stream.ts index 11ad754ef0..a92b61caed 100644 --- a/src/web/app/common/scripts/streaming/home-stream.ts +++ b/src/web/app/common/scripts/streaming/home-stream.ts @@ -16,7 +16,9 @@ export default class Connection extends Stream { }, 1000 * 60); // 自分の情報が更新されたとき - this.on('i_updated', me.update); + this.on('i_updated', i => { + Object.assign(me, i); + }); // トークンが再生成されたとき // このままではAPIが利用できないので強制的にサインアウトさせる |