Skip to content

Commit

Permalink
Set timestamp for every DataMessage (#290)
Browse files Browse the repository at this point in the history
This imitates the behaviour of Signal-Desktop and is required to pass envelope content validation. Previous reactions would emit this field.

Co-authored-by: Gabriel Féron <[email protected]>
  • Loading branch information
hrdl-github and gferon authored Nov 11, 2024
1 parent af5273a commit 426b156
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions presage/src/manager/registered.rs
Original file line number Diff line number Diff line change
Expand Up @@ -869,6 +869,7 @@ impl<S: Store> Manager<S, Registered> {
.profile_key
.get_or_insert(self.state.data.profile_key().get_bytes().to_vec());
message.required_protocol_version = Some(0);
message.timestamp = Some(timestamp);
}

sender
Expand Down

0 comments on commit 426b156

Please sign in to comment.