summaryrefslogtreecommitdiffstats
path: root/tests/php
AgeCommit message (Collapse)Author
2023-05-09fix(chat): Fix call summary with only numeric user idsJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-05-05Merge pull request #9456 from ↵Joas Schilling
nextcloud/techdebt/noid/make-checksum-verification-generic techdebt(api): Make the checksum verification generic so it can be re…
2023-05-05Add the capability typing-privacyVitor Mattos
Signed-off-by: Vitor Mattos <vitor@php.rio>
2023-05-05Add user setting for toggle typing privacyVitor Mattos
Signed-off-by: Vitor Mattos <vitor@php.rio>
2023-05-04techdebt(api): Make the checksum verification generic so it can be reusedJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-05-04fix(tests): Fix capability unit tests after merge of custom avatar uploadJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-05-03Fixes to be able identify if have a custom avatarVitor Mattos
* Added the header X-NC-IsCustomAvatar * Return every time a non empty string as avatarVersion Signed-off-by: Vitor Mattos <vitor@php.rio>
2023-05-02fix(tests): Fix "Creation of dynamic property" for PHP 8.2 in testsJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-05-02feat(avatar): Use the first emoji of room names as avatar emojiJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-04-26Avoid out-of-memory errors by using a resource instead of loading entire ↵Elmer Miroslav Mosher Golovin
files into memory Signed-off-by: Elmer Miroslav Mosher Golovin <miroslav@mishamosher.com>
2023-04-20fix(tests): Fix RecordingService unit testJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-04-19feat(call-reactions): Document the list of supported emojis as capability so ↵Joas Schilling
it's the same on all clients Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-04-18Merge pull request #9329 from nextcloud/feat/9270/video-background-capabilitiesJoas Schilling
feat(virtual-background): Add capabilities for predefined virtual bac…
2023-04-18feat(virtual-background): Add capabilities for predefined virtual ↵Joas Schilling
backgrounds and whether users can upload custom ones Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-04-18fix(recording): Don't create confusing system message about recording if ↵Joas Schilling
actor ended the call Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-04-17feat(chat): Add capabilities for translation optionsJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-04-14Return with avatar URL capabilityVitor Mattos
Revert https://github.com/nextcloud/spreed/pull/8805 Signed-off-by: Vitor Mattos <vitor@php.rio>
2023-04-13automated: Apply CS fixJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-04-04fix(tests): Make sure avatar service is actually calledJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-04-04Fix method to get avatarURL and validate the URLVitor Mattos
https://github.com/nextcloud/spreed/pull/9072/files#r1142350857 Signed-off-by: Vitor Mattos <vitor@php.rio>
2023-04-04Document icon-url on call rich objectsVitor Mattos
https://github.com/nextcloud/spreed/pull/8333 introduced an optional `icon-url` for the call objects in rich messages. https://github.com/nextcloud/spreed/issues/8389 Signed-off-by: Vitor Mattos <vitor@php.rio>
2023-03-20Remove unused propertyVitor Mattos
The property config isn't used at this class Signed-off-by: Vitor Mattos <vitor@php.rio>
2023-03-17Merge pull request #9066 from ↵Joas Schilling
nextcloud/feature/noid/mark-notifications-as-read-in-receive-messages Allow to receive messages without marking notifications as unread
2023-03-16Allow to retrieve messages without marking notifications as readMarcel Müller
Signed-off-by: Marcel Müller <marcel-mueller@gmx.de>
2023-03-14Fix unit testsJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-03-13Implement tests on method searchGroupsVitor Mattos
Signed-off-by: Vitor Mattos <vitor@php.rio>
2023-03-13Suggest group mentions as wellJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-03-08Merge pull request #8846 from ↵Joas Schilling
nextcloud/feature/send-notification-when-get-upload-problem Send notification when get upload problem
2023-02-27Change type of notificationVitor Mattos
Change type of notification Add the new type to be deleted Signed-off-by: Vitor Mattos <vitor@php.rio>
2023-02-27fix(CI): Adjust unit testsJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-02-24Send notification when get upload problemVitor Mattos
Signed-off-by: Vitor Mattos <vitor@php.rio>
2023-02-23Merge pull request #8805 from nextcloud/bugfix/8760/remove-avatar-capabilityJoas Schilling
Remove avatar capability
2023-02-22Add failed status to recordingsDaniel Calviño Sánchez
Although recordings should not fail in some cases they could (for example, if the configuration is wrong, the disk is full...). A new recording status, "failed", has been added to notify that situation to the Nextcloud server from the recording server. Typically call participants will not be able to do anything about the failure, so the clients can just show a notification to the moderators and hint about asking the system administrators. In any case, even if the recording status is "failed" further recordings can be started, which will behave as if the recording was started from the "none" status. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2023-02-22Add "starting" values for recording statusDaniel Calviño Sánchez
As starting the recording can take some time "starting" values were added to signal that an audio or video recording is starting. The status will be changed from NONE to STARTING_VIDEO/AUDIO by the Nextcloud server when the request to start the recording succeeds, and then the recording status will be set to VIDEO or AUDIO by the recording server once the recording actually started. Stopping the recording, on the other hand, should be quite fast, so no STOPPING status were added. The system messages were also adjusted to be sent only once the recording really started or stopped. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2023-02-22Include participant in start/stop requests to the recording serverDaniel Calviño Sánchez
The participant will be in turn forwarded again to the Nextcloud server once notified that the recording started or stopped so it retains the proper participant (for example, in system messages) rather than using the recording server. The actor is optional when stopping the recording, as the recording could be implicitly stopped when the last participant leaves the call. Nevertheless, this causes the system message to be assigned to a guest (as the request comes from the recording server), which is unexpected, so this may need to be adjusted. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2023-02-22Add optional participant parameter to the "callRecording" change eventDaniel Calviño Sánchez
This makes possible to set a different participant than the current user as the participant who started or stopped the recording, which is needed now that the recording status is changed in a request from the recording server. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2023-02-21Merge pull request #8756 from ↵Joas Schilling
nextcloud/use-internal-client-of-signaling-server-for-recording Use internal client of signaling server for recording
2023-02-21Revert avatar usageJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-02-21Remove avatar capabilityJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-02-20Add support for getting the signaling settings from the recording serverDaniel Calviño Sánchez
The signaling settings for a specific conversation could be got only by the participants of that conversation. Now it is possible to get them too from the recording server through the recording secret. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2023-02-17Return status of other user on one to one roomVitor Mattos
Signed-off-by: Vitor Mattos <vitor@php.rio>
2023-02-14Add unit test for signaling messages for recording status changesDaniel Calviño Sánchez
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2023-02-14Send requests to the recording server to start and stop recordingsDaniel Calviño Sánchez
The owner of the recording must be provided when starting it to be able to later store it. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2023-02-10Add docs and a capabilityJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-02-09Do not disinvite self-joined users when leavingDaniel Calviño Sánchez
If the external signaling server is used, when a participant is disinvited it is expected that the client leaves the conversation if still in it. Therefore, self-joined users should not be disinvited when they disconnect from a conversation, as they can still have other sessions in it. To ensure that self-joined users will be disinvited when their last session leaves the conversation now a USER_REMOVE event is explicitly triggered when that last session leaves and the user is, in fact, removed from the conversation. Note that this does not cause the system message about the participant leaving to be sent, as it is explicitly guarded against self-joined users leaving the conversation. However, this change will cause other handlers to be called now, like those to invalidate resources, but it is very likely that they should have been called and that this change is actually a fix too in that regard. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2023-02-09Extract reference to "userManager" to be used in the testsDaniel Calviño Sánchez
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2023-02-03Fix expected*Message() functionJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-02-02fix(CI): Creation of dynamic property is deprecatedJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-01-31Do not send "switchto" messages for breakout rooms without sessionsDaniel Calviño Sánchez
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2023-01-31Send signaling message when starting or stopping breakout roomsDaniel Calviño Sánchez
When the breakout room status changes a "switchto" message is sent to all the active sessions in either the parent or the breakout rooms (depending on whether they are being started or stopped) with the token of the room that they have to switch to. When the breakout rooms are started the message is sent only to non moderators, as moderators do not have a single breakout room assigned. On the other hand, when the breakout rooms are stopped the message is also sent to all moderators (who are in a breakout room and not already in the parent room), as all participants need to switch to the parent room. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>