diff options
author | Dominik Guzei <dominik.guzei@gmail.com> | 2019-04-12 20:38:45 +0200 |
---|---|---|
committer | Dominik Guzei <dominik.guzei@gmail.com> | 2019-04-12 20:38:45 +0200 |
commit | f7b0b76e7720a1b055f381d35237218fe276faf5 (patch) | |
tree | 4bf14c402c6a4098812b0516d69b5acabc848ea2 | |
parent | link to in-app changelog on new update notification (diff) | |
download | ferdium-app-f7b0b76e7720a1b055f381d35237218fe276faf5.tar.gz ferdium-app-f7b0b76e7720a1b055f381d35237218fe276faf5.tar.zst ferdium-app-f7b0b76e7720a1b055f381d35237218fe276faf5.zip |
only show announcements for current version
-rw-r--r-- | src/features/announcements/store.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/features/announcements/store.js b/src/features/announcements/store.js index 0bebf29fd..87cf08544 100644 --- a/src/features/announcements/store.js +++ b/src/features/announcements/store.js | |||
@@ -123,6 +123,11 @@ export class AnnouncementsStore extends FeatureStore { | |||
123 | const targetVersion = this.targetVersion || this.currentVersion; | 123 | const targetVersion = this.targetVersion || this.currentVersion; |
124 | if (!targetVersion) return; | 124 | if (!targetVersion) return; |
125 | getChangelogRequest.execute(targetVersion); | 125 | getChangelogRequest.execute(targetVersion); |
126 | getAnnouncementRequest.execute(targetVersion); | 126 | // We only fetch announcements for current / older versions |
127 | if (targetVersion <= this.currentVersion) { | ||
128 | getAnnouncementRequest.execute(targetVersion); | ||
129 | } else { | ||
130 | getAnnouncementRequest.reset(); | ||
131 | } | ||
127 | } | 132 | } |
128 | } | 133 | } |