@streamlayer/feature-gamification 1.22.1 → 1.22.3

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.
@@ -233,7 +233,7 @@ export class Gamification extends AbstractFeature {
233
233
  type: NotificationType.QUESTION_RESOLVED,
234
234
  action: () => this.openQuestion(question.id, feedItem),
235
235
  close: () => this.closeQuestion(id),
236
- autoHideDuration: votedCorrect ? 15000 : 12000,
236
+ autoHideDuration: votedCorrect ? 15000 : 14000,
237
237
  id: notificationId,
238
238
  emitEvent: false,
239
239
  data: {
@@ -249,7 +249,7 @@ export class Gamification extends AbstractFeature {
249
249
  },
250
250
  correctAnswerTitle: correctAnswer?.text,
251
251
  correct: !!votedCorrect,
252
- predictionResult: status === QuestionStatus.RESOLVED,
252
+ predictionResult: true,
253
253
  questionTitle: question?.subject,
254
254
  },
255
255
  inApp: {
@@ -484,7 +484,6 @@ export class Gamification extends AbstractFeature {
484
484
  }
485
485
  };
486
486
  openQuestion = (questionId, question) => {
487
- console.log('openQuestion', questionId, question);
488
487
  if (!questionId) {
489
488
  return () => { };
490
489
  }
package/package.json CHANGED
@@ -1,19 +1,19 @@
1
1
  {
2
2
  "name": "@streamlayer/feature-gamification",
3
- "version": "1.22.1",
3
+ "version": "1.22.3",
4
4
  "peerDependencies": {
5
5
  "@bufbuild/protobuf": "^2.2.2",
6
6
  "@fastify/deepmerge": "^2.0.0",
7
- "@streamlayer/sl-eslib": "^5.218.0",
7
+ "@streamlayer/sl-eslib": "^5.219.0",
8
8
  "uuid": "^11.1.0",
9
9
  "nanostores": "^0.11.4",
10
- "@streamlayer/sdk-web-api": "^1.13.1",
11
- "@streamlayer/sdk-web-core": "^1.16.1",
12
- "@streamlayer/sdk-web-interfaces": "^1.7.9",
13
- "@streamlayer/sdk-web-logger": "^1.0.76",
14
- "@streamlayer/sdk-web-notifications": "^1.3.38",
15
- "@streamlayer/sdk-web-storage": "^1.0.76",
16
- "@streamlayer/sdk-web-types": "^1.15.1"
10
+ "@streamlayer/sdk-web-api": "^1.13.3",
11
+ "@streamlayer/sdk-web-interfaces": "^1.7.11",
12
+ "@streamlayer/sdk-web-core": "^1.16.3",
13
+ "@streamlayer/sdk-web-logger": "^1.0.78",
14
+ "@streamlayer/sdk-web-notifications": "^1.3.40",
15
+ "@streamlayer/sdk-web-storage": "^1.0.78",
16
+ "@streamlayer/sdk-web-types": "^1.15.3"
17
17
  },
18
18
  "devDependencies": {
19
19
  "tslib": "^2.7.0"