1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-17 02:05:23 +02:00

nanka iroiro

Closes #1188
This commit is contained in:
syuilo
2018-03-06 08:35:25 +09:00
parent bd167b48d5
commit e515276e15
10 changed files with 93 additions and 63 deletions

View File

@@ -1,3 +1,5 @@
import * as merge from 'object-assign-deep';
import Stream from './stream';
import MiOS from '../../mios';
@@ -18,7 +20,10 @@ export default class Connection extends Stream {
// 自分の情報が更新されたとき
this.on('i_updated', i => {
Object.assign(me, i);
if (os.debug) {
console.log('I updated:', i);
}
merge(me, i);
});
// トークンが再生成されたとき