Skip to content

Commit f68a2a0

Browse files
committed
add comment where one needs to use the origin_server_ts
Signed-off-by: Timo K <[email protected]>
1 parent e81bf09 commit f68a2a0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: src/matrixrtc/MatrixRTCSession.ts

+1
Original file line numberDiff line numberDiff line change
@@ -625,6 +625,7 @@ export class MatrixRTCSession extends TypedEventEmitter<MatrixRTCSessionEvent, M
625625

626626
if (prevMembership) m.created_ts = prevMembership.createdTs();
627627
if (m.created_ts) m.expires_ts = m.created_ts + (m.expires ?? 0);
628+
// TODO: Date.now() should be the origin_server_ts (now).
628629
else m.expires_ts = Date.now() + (m.expires ?? 0);
629630

630631
return m;

0 commit comments

Comments
 (0)