Skip to content

Commit

Permalink
add comment where one needs to use the origin_server_ts
Browse files Browse the repository at this point in the history
Signed-off-by: Timo K <[email protected]>
  • Loading branch information
toger5 committed Jan 26, 2024
1 parent b7fbcfd commit d797ac2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/matrixrtc/MatrixRTCSession.ts
Original file line number Diff line number Diff line change
Expand Up @@ -625,6 +625,7 @@ export class MatrixRTCSession extends TypedEventEmitter<MatrixRTCSessionEvent, M

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

return m;
Expand Down

0 comments on commit d797ac2

Please sign in to comment.