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
commitc21c3428217d25c058a6fb9fe40bcfdc1cc1e1c1 (patch)
tree67f8265ba004ea5d576311f582c98d8a00676c2f /util/src/entities/ReadState.ts
parent:construction: api (diff)
downloadserver-c21c3428217d25c058a6fb9fe40bcfdc1cc1e1c1.tar.xz
:construction: typeorm
Diffstat (limited to '')
-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)