aboutsummaryrefslogtreecommitdiffstats
path: root/src/features
diff options
context:
space:
mode:
authorLibravatar Dominik Guzei <dominik.guzei@gmail.com>2019-05-08 17:12:14 +0200
committerLibravatar Dominik Guzei <dominik.guzei@gmail.com>2019-05-08 17:12:14 +0200
commit26ffe6bdce08445b0931f686597d7fd34ee36949 (patch)
tree49892eae1b676856c2cecedfceeba396f63eb581 /src/features
parentremove console log (diff)
downloadferdium-app-26ffe6bdce08445b0931f686597d7fd34ee36949.tar.gz
ferdium-app-26ffe6bdce08445b0931f686597d7fd34ee36949.tar.zst
ferdium-app-26ffe6bdce08445b0931f686597d7fd34ee36949.zip
remove version limitation for fetching announcements
Diffstat (limited to 'src/features')
-rw-r--r--src/features/announcements/store.js7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/features/announcements/store.js b/src/features/announcements/store.js
index 33aa84ef5..0d2b68ccf 100644
--- a/src/features/announcements/store.js
+++ b/src/features/announcements/store.js
@@ -122,12 +122,7 @@ export class AnnouncementsStore extends FeatureStore {
122 const targetVersion = this.targetVersion || this.currentVersion; 122 const targetVersion = this.targetVersion || this.currentVersion;
123 if (!targetVersion) return; 123 if (!targetVersion) return;
124 getChangelogRequest.execute(targetVersion); 124 getChangelogRequest.execute(targetVersion);
125 // We only fetch announcements for current / older versions 125 getAnnouncementRequest.execute(targetVersion);
126 if (targetVersion <= this.currentVersion) {
127 getAnnouncementRequest.execute(targetVersion);
128 } else {
129 getAnnouncementRequest.reset();
130 }
131 }; 126 };
132 127
133 _showAnnouncementOnRouteMatch = () => { 128 _showAnnouncementOnRouteMatch = () => {