diff --git a/api/package-lock.json b/api/package-lock.json index cc851717..1aa41056 100644 Binary files a/api/package-lock.json and b/api/package-lock.json differ diff --git a/api/package.json b/api/package.json index f4614c90..c586c9fe 100644 --- a/api/package.json +++ b/api/package.json @@ -49,7 +49,7 @@ "@types/morgan": "^1.9.3", "@types/multer": "^1.4.5", "@types/node": "^14.17.9", - "@types/node-fetch": "^2.5.7", + "@types/node-fetch": "^2.5.5", "@types/supertest": "^2.0.11", "@zerollup/ts-transform-paths": "^1.7.18", "jest": "^27.2.5", @@ -86,7 +86,7 @@ "missing-native-js-functions": "^1.2.18", "morgan": "^1.10.0", "multer": "^1.4.2", - "node-fetch": "^3.1.1", + "node-fetch": "^2.6.2", "patch-package": "^6.4.7", "picocolors": "^1.0.0", "proxy-agent": "^5.0.0", diff --git a/bundle/package-lock.json b/bundle/package-lock.json index 39056dea..9707c7bf 100644 Binary files a/bundle/package-lock.json and b/bundle/package-lock.json differ diff --git a/bundle/package.json b/bundle/package.json index 5363ccfc..7d68427f 100644 --- a/bundle/package.json +++ b/bundle/package.json @@ -93,6 +93,7 @@ "missing-native-js-functions": "^1.2.18", "morgan": "^1.10.0", "multer": "^1.4.2", + "nan": "^2.15.0", "nanocolors": "^0.2.12", "node-fetch": "^2.6.2", "node-os-utils": "^1.3.5", diff --git a/cdn/package-lock.json b/cdn/package-lock.json index de3dfc70..b48833b0 100644 Binary files a/cdn/package-lock.json and b/cdn/package-lock.json differ diff --git a/cdn/package.json b/cdn/package.json index aedcc4bf..7a1f43c9 100644 --- a/cdn/package.json +++ b/cdn/package.json @@ -54,7 +54,7 @@ "missing-native-js-functions": "^1.2.17", "multer": "^1.4.2", "nanocolors": "^0.2.12", - "node-fetch": "^2.6.7", + "node-fetch": "^2.6.2", "supertest": "^6.1.6", "typescript": "^4.1.2" }, diff --git a/gateway/package-lock.json b/gateway/package-lock.json index d51187e4..9b3841af 100644 Binary files a/gateway/package-lock.json and b/gateway/package-lock.json differ diff --git a/util/package-lock.json b/util/package-lock.json index f93760d4..82e90b36 100644 Binary files a/util/package-lock.json and b/util/package-lock.json differ diff --git a/util/src/entities/ReadState.ts b/util/src/entities/ReadState.ts index ebef89be..e6d73105 100644 --- a/util/src/entities/ReadState.ts +++ b/util/src/entities/ReadState.ts @@ -31,8 +31,17 @@ export class ReadState extends BaseClass { }) user: User; + // fully read marker @Column({ nullable: true }) - last_message_id: string; + last_message_id: string; + + // public read receipt + @Column({ nullable: true }) + public_ack: string; + + // notification cursor / private read receipt + @Column({ nullable: true }) + notifications_cursor: string; @Column({ nullable: true }) last_pin_timestamp?: Date;