モバイル版のウィジェット復活

This commit is contained in:
syuilo
2018-05-17 16:24:01 +09:00
parent 5c38084af5
commit a1692ebc7c
5 changed files with 71 additions and 36 deletions

View File

@ -48,6 +48,17 @@ export class HomeStream extends Stream {
}
});
this.on('mobile_home_updated', x => {
if (x.home) {
os.store.commit('settings/setMobileHome', x.home);
} else {
os.store.commit('settings/setMobileHomeWidget', {
id: x.id,
data: x.data
});
}
});
// トークンが再生成されたとき
// このままではMisskeyが利用できないので強制的にサインアウトさせる
this.on('my_token_regenerated', () => {