Skip to content

Commit

Permalink
Set timestamp to 1 to pass old Session clients validity check
Browse files Browse the repository at this point in the history
  • Loading branch information
jagerman committed Oct 5, 2023
1 parent a608b13 commit 874c52d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config/protos.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ ustring wrap_config(
// Now we just keep on trucking with more protobuf:
auto envelope = SessionProtos::Envelope();
*envelope.mutable_content() = from_unsigned_sv(enc_shared_conf);
envelope.set_timestamp(0);
envelope.set_timestamp(1); // Old session clients with their own unwrapping require this > 0
envelope.set_type(SessionProtos::Envelope_Type::Envelope_Type_SESSION_MESSAGE);

// And more protobuf (even though this no one cares about anything other than the body in this
Expand Down

0 comments on commit 874c52d

Please sign in to comment.