JMAP for Contacts passing tests

This commit is contained in:
mdecimus
2025-10-14 12:34:18 +02:00
parent 0936c21fbc
commit 71ae50f9c9
81 changed files with 3255 additions and 461 deletions

View File

@@ -71,7 +71,7 @@ impl SnowflakeIdGenerator {
}
pub fn to_timestamp(id: u64) -> u64 {
(id >> (SEQUENCE_LEN + NODE_ID_LEN)) + DEFAULT_EPOCH
(id >> (SEQUENCE_LEN + NODE_ID_LEN)) / 1000 + DEFAULT_EPOCH
}
pub fn with_node_id(node_id: u64) -> Self {