This commit is contained in:
Yegor Vialov
2020-05-22 16:01:16 +00:00
parent 1ed56ce8f1
commit 701e6a46df
4 changed files with 3 additions and 16 deletions

View File

@ -26,7 +26,7 @@ class StartupUserMessagesManager {
_needToshowDonateMessage = false;
} else {
bool wasShown = prefs.getBool(_donateMsgShownKey) ?? false;
_needToshowDonateMessage = (DateTime.now().millisecondsSinceEpoch - tInt >= 1209600000) && !wasShown; //14 days
_needToshowDonateMessage = (Duration(milliseconds: DateTime.now().millisecondsSinceEpoch - tInt).inDays >= 14) && !wasShown;
}
_whatsNewMessageShown = '${prefs.getString(_whatsNewMessageKey)}' == whatsNewUrl;
if (!_whatsNewMessageShown) {