Skip to content

Commit 328f774

Browse files
committed
fix: use the same values as libsession-util
1 parent 6784541 commit 328f774

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/user_groups_config.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,8 +314,8 @@ Napi::Value UserGroupsWrapper::setGroup(const Napi::CallbackInfo& info) {
314314
obj.Get("joinedAtSeconds"), "UserGroupsWrapper::setGroup joinedAtSeconds")) {
315315
group_info.joined_at = *joinedAtSeconds;
316316
}
317-
// 1st Jan 2100. Probably an invalid timestamp.
318-
if (group_info.joined_at > 4099680000) {
317+
// Probably an invalid timestamp.
318+
if (group_info.joined_at > 9000000000) {
319319
throw std::invalid_argument{"group.joined_at is too far in the future"};
320320
}
321321

0 commit comments

Comments
 (0)