Showing
1 changed file
with
3 additions
and
3 deletions
| @@ -102,9 +102,9 @@ class HomePageState extends State<HomePage> with WidgetsBindingObserver { | @@ -102,9 +102,9 @@ class HomePageState extends State<HomePage> with WidgetsBindingObserver { | ||
| 102 | UpdateModel updateModel = new UpdateModel(); | 102 | UpdateModel updateModel = new UpdateModel(); |
| 103 | updateModel.checkUpdate(context, showToast: false); | 103 | updateModel.checkUpdate(context, showToast: false); |
| 104 | }); | 104 | }); |
| 105 | - // timer = Timer.periodic(Duration(minutes: 3), (_) { | ||
| 106 | - // _getAllUnMessages(); | ||
| 107 | - // }); | 105 | + timer = Timer.periodic(Duration(minutes: 3), (_) { |
| 106 | + _getAllUnMessages(); | ||
| 107 | + }); | ||
| 108 | }); | 108 | }); |
| 109 | } | 109 | } |
| 110 | 110 |
-
Please register or login to post a comment