@streamlayer/feature-gamification 1.16.6 → 1.16.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -461,14 +461,12 @@ export class Gamification extends AbstractFeature {
461
461
  return () => { };
462
462
  }
463
463
  const openedFromBetPack = question?.openedFrom === 'bet-pack';
464
- if (openedFromBetPack) {
465
- this.notifications.close(this.background.getCurrentSessionId({
466
- prefix: 'notification',
467
- entity: questionId,
468
- }), {
469
- animateHiding: false,
470
- });
471
- }
464
+ this.notifications.close(this.background.getCurrentSessionId({
465
+ prefix: 'notification',
466
+ entity: questionId,
467
+ }), {
468
+ animateHiding: false,
469
+ });
472
470
  let questionType = question?.attributes?.type;
473
471
  if (!questionType && !openedFromBetPack) {
474
472
  const feedList = this.feedList.getStore().value?.data || [];
package/lib/storage.js CHANGED
@@ -30,7 +30,7 @@ export class GamificationStorage extends Storage {
30
30
  return !!this.read(KEY_PREFIX.BET_PACK_ITEM_RECEIVED, organizationId, userId, eventId, questionId);
31
31
  };
32
32
  saveQuestionOpened = ({ userId, eventId, organizationId }, questionId) => {
33
- this.write(KEY_PREFIX.QUESTION_OPENED, organizationId, userId, eventId, questionId);
33
+ this.write(KEY_PREFIX.QUESTION_OPENED, organizationId, userId, eventId, questionId, '1');
34
34
  };
35
35
  isQuestionOpened = ({ userId, eventId, organizationId }, questionId) => {
36
36
  return !!this.read(KEY_PREFIX.QUESTION_OPENED, organizationId, userId, eventId, questionId);
package/package.json CHANGED
@@ -1,19 +1,19 @@
1
1
  {
2
2
  "name": "@streamlayer/feature-gamification",
3
- "version": "1.16.6",
3
+ "version": "1.16.8",
4
4
  "peerDependencies": {
5
5
  "@bufbuild/protobuf": "^1.10.0",
6
6
  "@fastify/deepmerge": "^2.0.0",
7
7
  "@streamlayer/sl-eslib": "^5.149.1",
8
8
  "uuid": "^11.1.0",
9
9
  "nanostores": "^0.11.4",
10
- "@streamlayer/sdk-web-api": "^1.8.6",
11
- "@streamlayer/sdk-web-core": "^1.11.8",
12
- "@streamlayer/sdk-web-interfaces": "^1.4.19",
13
- "@streamlayer/sdk-web-logger": "^1.0.53",
14
- "@streamlayer/sdk-web-notifications": "^1.3.15",
15
- "@streamlayer/sdk-web-storage": "^1.0.53",
16
- "@streamlayer/sdk-web-types": "^1.10.10"
10
+ "@streamlayer/sdk-web-api": "^1.8.8",
11
+ "@streamlayer/sdk-web-core": "^1.11.10",
12
+ "@streamlayer/sdk-web-interfaces": "^1.4.21",
13
+ "@streamlayer/sdk-web-logger": "^1.0.55",
14
+ "@streamlayer/sdk-web-notifications": "^1.3.17",
15
+ "@streamlayer/sdk-web-storage": "^1.0.55",
16
+ "@streamlayer/sdk-web-types": "^1.10.12"
17
17
  },
18
18
  "devDependencies": {
19
19
  "tslib": "^2.7.0"