Joas Schilling
bc4f7e5fd3
Prevent promoting/demoting groups on API level
Signed-off-by: Joas Schilling <coding@schilljs.com>
5 years ago
Joas Schilling
4ccc537c14
Save and show the display name of groups
Signed-off-by: Joas Schilling <coding@schilljs.com>
5 years ago
Joas Schilling
55981dbbef
Make sure existing self-joined users are converted to added users
Signed-off-by: Joas Schilling <coding@schilljs.com>
5 years ago
Joas Schilling
d7bd1a8244
Add a method to add group members directly to a conversation
Signed-off-by: Joas Schilling <coding@schilljs.com>
5 years ago
Joas Schilling
82d0d83885
Save setting for play sounds
Signed-off-by: Joas Schilling <coding@schilljs.com>
5 years ago
Joas Schilling
7f7b77da4f
Fix some minor errors
Signed-off-by: Joas Schilling <coding@schilljs.com>
5 years ago
Joas Schilling
5adb061838
Temporary OCS API for user avatar upload and delete
Signed-off-by: Joas Schilling <coding@schilljs.com>
5 years ago
Joas Schilling
1e9c21e0c9
Fix removing yourself and promoting a stranger
Signed-off-by: Joas Schilling <coding@schilljs.com>
5 years ago
Joas Schilling
928e047de2
Handle all getParticipants with multi sessions
Signed-off-by: Joas Schilling <coding@schilljs.com>
5 years ago
Joas Schilling
84fa5678e2
Remove old API version handlings
Signed-off-by: Joas Schilling <coding@schilljs.com>
5 years ago
Joas Schilling
a545cff72b
Only load sessions on the room list for this PHP session
Signed-off-by: Joas Schilling <coding@schilljs.com>
5 years ago
Joas Schilling
6ad31df01b
Fix selecting the session when there could be multiple
Signed-off-by: Joas Schilling <coding@schilljs.com>
5 years ago
Joas Schilling
c97f55e240
Group multiple sessions of the same attendee
Combine the session values:
* All inCall bit flags
* Newest lastPing
* Any sessionId (for online checking)
Signed-off-by: Joas Schilling <coding@schilljs.com>
5 years ago
Joas Schilling
0e20ca571b
Don't load the session by default on getParticipantsForRoom
Signed-off-by: Joas Schilling <coding@schilljs.com>
5 years ago
Joas Schilling
1caca56073
Don't load session on getRoomsForUser when not needed
Signed-off-by: Joas Schilling <coding@schilljs.com>
5 years ago
Joas Schilling
4031c182df
Prepare selecting the correct session in case there are multiple
Signed-off-by: Joas Schilling <coding@schilljs.com>
5 years ago
Jakob Röhrl
2c3f80bb08
Don't allow to delete other persons chats in 1-1 chats
Signed-off-by: Jakob Röhrl <jakob.roehrl@web.de>
5 years ago
Joas Schilling
777f1aef95
Don't create an unused event
Signed-off-by: Joas Schilling <coding@schilljs.com>
5 years ago
Joas Schilling
9ddac32d93
Always go through the wrapper function
Signed-off-by: Joas Schilling <coding@schilljs.com>
5 years ago
Joas Schilling
c24bc74feb
Fix copy paste error on parameter docs
Signed-off-by: Joas Schilling <coding@schilljs.com>
5 years ago
Vincent Petry
5ff4d5d408
Don't expose hasCall in lobby mode for non-moderators
This will hide the icon in the UI for non-moderators
when a call is in progress between moderators in lobby mode.
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
5 years ago
Joas Schilling
a347cf2375
Pick all sessions instead of attendees when returning participants on signaling
Signed-off-by: Joas Schilling <coding@schilljs.com>
5 years ago
Vincent Petry
3bfb611d9d
When locking a conversation, kick out everyone
Also only trigger events and update the session flags
if they actually changed, as some callers might not check for differences.
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
5 years ago
Joas Schilling
4dd9c20f61
Fix API documentation
Signed-off-by: Joas Schilling <coding@schilljs.com>
5 years ago
Joas Schilling
0aa212c35a
Limit the session list on the database instead of selecting all attendees
Should save some load as we don't create objects and select items we then throw away
Signed-off-by: Joas Schilling <coding@schilljs.com>
5 years ago
Joas Schilling
77fe613447
Replace "getNamesBySessionHashes" usages with Attendee access
Signed-off-by: Joas Schilling <coding@schilljs.com>
5 years ago
Joas Schilling
6934b5ba1c
Store the guest display name into the attendees table
Signed-off-by: Joas Schilling <coding@schilljs.com>
5 years ago
Joas Schilling
e9bc0ad78a
Reuse existing attendee when a guest refreshes
Signed-off-by: Joas Schilling <coding@schilljs.com>
5 years ago
Joas Schilling
c39f2c7ce9
Don't recalculate the actorId of guest attendees
Signed-off-by: Joas Schilling <coding@schilljs.com>
5 years ago
Joas Schilling
383ca5fd4c
Populate the display name when adding logged in users
Signed-off-by: Joas Schilling <coding@schilljs.com>
5 years ago
Joas Schilling
86d18ae835
Show "Guest" instead of session hash for guests
Signed-off-by: Joas Schilling <coding@schilljs.com>
5 years ago
Joas Schilling
bf5f69cded
Provide information for incoming call screens
Signed-off-by: Joas Schilling <coding@schilljs.com>
5 years ago
Julius Härtl
86d7798944
Make sure that collections scripts event is properly emitted
Signed-off-by: Julius Härtl <jus@bitgrid.net>
5 years ago
Joas Schilling
4a1fc78a67
Use the cached display name for participant list instead of the user manager
Signed-off-by: Joas Schilling <coding@schilljs.com>
5 years ago
Joas Schilling
63ad8bbe14
Use the cached display name from attendee for peer list instead of querying the user manager
Signed-off-by: Joas Schilling <coding@schilljs.com>
5 years ago
Daniel Calviño Sánchez
20f2c3186b
Add support for "turns:" scheme
Until now no scheme could be configured to connect to the TURN server
and "turn:" was used by default. The "turns:" scheme defines a
connection over TLS, which in some cases is needed by clients behind a
very restrictive firewall that only allows TLS connections. However,
encrypted TURN connections also require a certificate to be set in the
TURN server, which may not be always available. Moreover, encrypted TURN
connections also require a domain. Due to all this now it is possible to
set the TURN server scheme to "turn:", "turns:" or both, so the
administrator can set the best suiting one.
Already configured TURN servers that have no scheme configured yet
defaults to "turn:" to keep the same behaviour as before. New configured
TURN servers also default to "turn:", as "turns:" has some additional
requirements as explained above.
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
5 years ago
Joas Schilling
4d27b096c5
Allow to share RichObjects to chats
Signed-off-by: Joas Schilling <coding@schilljs.com>
5 years ago
Joas Schilling
11a861c2cb
Prevent deleting system messages and shares
Signed-off-by: Joas Schilling <coding@schilljs.com>
5 years ago
Joas Schilling
47c76fa9eb
Add docs and restrict deleting to non-lobby and read-write chats
Signed-off-by: Joas Schilling <coding@schilljs.com>
5 years ago
Joas Schilling
a7e30320ce
Check max age on deleting
Signed-off-by: Joas Schilling <coding@schilljs.com>
5 years ago
Joas Schilling
77f6a4ead3
Allow to know when deleting might not be sufficient
Signed-off-by: Joas Schilling <coding@schilljs.com>
5 years ago
Joas Schilling
9608867be3
Post a system message when deleting a message
Signed-off-by: Joas Schilling <coding@schilljs.com>
5 years ago
Joas Schilling
dd06f39ee5
Add an endpoint to delete a message
For now it only creates a system message
Signed-off-by: Joas Schilling <coding@schilljs.com>
5 years ago
Vincent Petry
d497e2a183
Adjust invitation resending after reviews
Remove userId legacy argument, only use attendeeId for resending.
Remove "email" from wordings.
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Co-authored-by: Joas Schilling <coding@schilljs.com>
5 years ago
Vincent Petry
0d70608041
Add participant action to resend email invitation
Allow moderators to resend email invitations to individual participants
in the participant list's actions menu.
Adjusted endpoints to work with attendeeId as it was needed.
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
5 years ago
Vincent Petry
5f08c96ff6
Reword resendEmail to resendInvitation in APIs
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
5 years ago
Vincent Petry
76543aadc7
Allow specifying participant on email resend API
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
5 years ago
Vincent Petry
1b460b842f
Generate PIN for email guests when resending invite
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
5 years ago
Vincent Petry
bf2b8cfbda
Allow resending invitation emails
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
5 years ago
Vincent Petry
cd2e307e3d
Only trigger event once when adding group users
When adding multiple users at once, the users to add are now batched
before being sent to the ParticipantService, which will result in the
event only being called once with the whole list.
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
5 years ago