better riot.im support

This commit is contained in:
timokoesters 2020-04-08 15:05:00 +02:00
parent fdeee7fdb5
commit 8557278b90
No known key found for this signature in database
GPG key ID: 24DA7517711A2BA4
5 changed files with 110 additions and 40 deletions

View file

@ -8,8 +8,9 @@ pub fn millis_since_unix_epoch() -> js_int::UInt {
(SystemTime::now()
.duration_since(UNIX_EPOCH)
.unwrap()
.as_millis() as u32)
.into()
.as_millis() as u64)
.try_into()
.expect("time millis are <= MAX_SAFE_UINT")
}
pub fn increment(old: Option<&[u8]>) -> Option<Vec<u8>> {