-
Notifications
You must be signed in to change notification settings - Fork 509
Add support for federated calls #12668
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
37da3b7
refactor: Extract method to validate recording consent
danxuliu 8fa7819
feat: Add annotation to load a federated user from the given session
nickvergessen e3f3146
feat: Join and leave calls from federated conversations
danxuliu 9df96cd
fix: Remove unused "activeGuests" attribute
danxuliu 5162e94
feat: Propagate "in call" status of rooms to federated servers
danxuliu 6c5f9a9
feat: Propagate "recording consent" status of rooms to federated servers
danxuliu f91bdfa
fix: Include federated users in participants update notifications
danxuliu 1163e73
feat: Show call button to federated users
danxuliu 9b526a0
feat: Update call flags by federated participants
danxuliu e264e82
chore: Update OpenAPI
danxuliu 13f092a
chore: Suppress Psalm issue
danxuliu File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| <?php | ||
|
|
||
| declare(strict_types=1); | ||
| /** | ||
| * SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors | ||
| * SPDX-License-Identifier: AGPL-3.0-or-later | ||
| */ | ||
|
|
||
| namespace OCA\Talk\Events; | ||
|
|
||
| use OCA\Talk\Room; | ||
|
|
||
| abstract class AActiveSinceModifiedEvent extends ARoomModifiedEvent { | ||
| public function __construct( | ||
| Room $room, | ||
| ?\DateTime $newValue, | ||
| ?\DateTime $oldValue, | ||
| protected int $callFlag, | ||
| protected int $oldCallFlag, | ||
| ) { | ||
| parent::__construct( | ||
| $room, | ||
| self::PROPERTY_ACTIVE_SINCE, | ||
| $newValue, | ||
| $oldValue, | ||
| ); | ||
| } | ||
|
|
||
| public function getCallFlag(): int { | ||
| return $this->callFlag; | ||
| } | ||
|
|
||
| public function getOldCallFlag(): int { | ||
| return $this->oldCallFlag; | ||
| } | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To keep writing the data for now, while we fix reading it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Guests are counted from the attendees instead of from the
active_guestscolumn for several years already, according to the PR:Make the call summary reuse the attendee table also for guests, so we don't have "and 132 guests" when a guest rejoins with a weak internet connection.Due to that and to either avoid propagating it for consistency, or not propagating it which would work for now if the field is used only for the call summary but could cause unexpected inconsistencies in the future if it ends used for something else, I kept it removed and did not change it.
And if it needs to be introduced back later... we can always do it anyway :-)