Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,6 @@ jobs:
uses: microsoft/[email protected]
if: runner.os == 'Windows'

- name: Setup node for windows
if: runner.os == 'Windows'
shell: bash
run: |
yarn global add node-gyp@latest

# - name: sed it
# if: runner.os == 'Windows'
# shell: bash
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"main": "index.js",
"name": "libsession_util_nodejs",
"description": "Wrappers for the Session Util Library",
"version": "0.4.7",
"version": "0.4.8",
"license": "GPL-3.0",
"author": {
"name": "Oxen Project",
Expand Down
4 changes: 4 additions & 0 deletions src/user_groups_config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,10 @@ Napi::Value UserGroupsWrapper::setGroup(const Napi::CallbackInfo& info) {
obj.Get("joinedAtSeconds"), "UserGroupsWrapper::setGroup joinedAtSeconds")) {
group_info.joined_at = *joinedAtSeconds;
}
// Probably an invalid timestamp.
if (group_info.joined_at > 9000000000) {
throw std::invalid_argument{"group.joined_at is too far in the future"};
}

if (auto invited = maybeNonemptyBoolean(
obj.Get("invitePending"), "UserGroupsWrapper::setGroup invitePending")) {
Expand Down
Loading