chatmail / chatmail/core

Detect client clock skew

Open
#8,312 2 comments 1 reaction 0 assignees View on GitHub
bug
Dominant language
Rust
Stars
929
Forks
143
Avg merge
1d 20h
Merged PRs (30d)
53

Description

Desktop clients are the most likely source of clock skew issues that may cause the timestamp of a message to be off far enough that it affects the order of messages as they are sorted on the client trusting the message's timestamp.

We have the opportunity to use the GETMETADATA response for /shared/vendor/deltachat/turn to check how far off the clock is and issue a Device Message to the client to let them know there's a potential issue worth investigating.

```
GETMETADATA "" /shared/vendor/deltachat/turn

chat.feld.me:3478:1781029481:cShWiPn89yo0qzQP8Lrcw4IuiOM=
```

If the profile has multiple relays we can even use voting logic to figure out if it's really a client or server problem.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.