Skip to content

Commit

Permalink
Add paremeter 'notify_participants=false' when the flag 'notifyPartic…
Browse files Browse the repository at this point in the history
…ipants is false' (#34)

* Add paremeter 'notify_participants=false' when the flag 'notifyParticipants is false'

* Update CHANGELOG.md

Co-authored-by: Ley <[email protected]>
Co-authored-by: Mostafa Rashed <[email protected]>
  • Loading branch information
3 people authored Dec 23, 2021
1 parent 2dfad81 commit 9a14f36
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ This section contains changes that have been committed but not yet released.

### Changed

- Added `false` parameter when `notifyParticipants` is false

### Deprecated

### Fixed
Expand Down
4 changes: 3 additions & 1 deletion src/main/java/com/nylas/Events.java
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,9 @@ private void validateConferencing(Event event) {

private static final Map<String, String> NOTIFY_PARTICIPANTS_PARAMS
= Collections.unmodifiableMap(Maps.of("notify_participants", "true"));
private static final Map<String, String> DONT_NOTIFY_PARTICIPANTS_PARAMS
= Collections.unmodifiableMap(Maps.of("notify_participants", "false"));
private static Map<String, String> getExtraQueryParams(boolean notifyParticipants) {
return notifyParticipants ? NOTIFY_PARTICIPANTS_PARAMS : null;
return notifyParticipants ? NOTIFY_PARTICIPANTS_PARAMS : DONT_NOTIFY_PARTICIPANTS_PARAMS;
}
}

0 comments on commit 9a14f36

Please sign in to comment.