mirror of
https://github.com/timepill/timepill-app.git
synced 2025-04-30 09:59:31 +08:00
修复 接收到推送后,提醒页面没有刷新的问题
This commit is contained in:
parent
8ab11c82db
commit
fe7069548d
1 changed files with 2 additions and 1 deletions
|
@ -75,7 +75,7 @@ export default class NotificationPage extends Component {
|
|||
this.restartTipTimer().catch((err) => console.log(err))
|
||||
});
|
||||
this.loginListener = DeviceEventEmitter.addListener(Event.login, () => {
|
||||
this.registerUser().catch((err) => console.log(err))
|
||||
this.registerUser().catch((err) => console.log(err));
|
||||
this.restartTipTimer().catch((err) => console.log(err))
|
||||
});
|
||||
this.updatePushInfo();
|
||||
|
@ -123,6 +123,7 @@ export default class NotificationPage extends Component {
|
|||
}
|
||||
|
||||
receiveNotification = (msg) => {
|
||||
this.refresh();
|
||||
this.restartTipTimer().catch((err) => console.log(err))
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue