summary refs log tree commit diff
path: root/util/src/entities/ReadState.ts
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-08-27 11:11:16 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-08-27 11:11:16 +0200
commit845e77eed21d5e03994978ddee0ca0c613234b3f (patch)
tree75beee1614c80f1c8acd744aaeb02db68f46b2ac /util/src/entities/ReadState.ts
parent:construction: api (diff)
downloadserver-845e77eed21d5e03994978ddee0ca0c613234b3f.tar.xz
:construction: typeorm
Diffstat (limited to 'util/src/entities/ReadState.ts')
-rw-r--r--util/src/entities/ReadState.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/util/src/entities/ReadState.ts b/util/src/entities/ReadState.ts
index 0310cb5f..70a38b84 100644
--- a/util/src/entities/ReadState.ts
+++ b/util/src/entities/ReadState.ts
@@ -4,6 +4,10 @@ import { Channel } from "./Channel";
 import { Message } from "./Message";
 import { User } from "./User";
 
+// for read receipts
+// notification cursor and public read receipt need to be forwards-only (the former to prevent re-pinging when marked as unread, and the latter to be acceptable as a legal acknowledgement in criminal proceedings), and private read marker needs to be advance-rewind capable
+// public read receipt ≥ notification cursor ≥ private fully read marker
+
 @Entity("read_states")
 export class ReadState extends BaseClass {
 	@RelationId((read_state: ReadState) => read_state.channel)