Better fallback for the event `localTimestamp` calculation. (#3900)
* better fallback to localTimestamp calculation
Signed-off-by: Timo K <toger5@hotmail.de>
* make `isExpired` impl simpler to read
Signed-off-by: Timo K <toger5@hotmail.de>
* update tests
Signed-off-by: Timo K <toger5@hotmail.de>
* refactor to use localTimestamp in the mocks
Signed-off-by: Timo K <toger5@hotmail.de>
* Update src/models/event.ts
Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
* Update src/models/event.ts
Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
* Update and clarify comments.
So that the localTimestamp and localAge behavior is easier to understand.
Signed-off-by: Timo K <toger5@hotmail.de>
* Replace localTimestamp biding
with binding the whole roomState
Signed-off-by: Timo K <toger5@hotmail.de>
---------
Signed-off-by: Timo K <toger5@hotmail.de>
Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>