Joas Schilling
ee2632ba40
Further pass on the sessionId to leaveRoomAsParticipant
Signed-off-by: Joas Schilling <coding@schilljs.com>
5 years ago
Joas Schilling
5bce99b2d0
Leave the room with the old session
Signed-off-by: Joas Schilling <coding@schilljs.com>
5 years ago
Joas Schilling
0de6b87582
Make sure pinging session ids only uses indexes
Since sessions are unique globally (apart from '0' which is filtered out before)
we can update the ping only based on the index instead of
index + additional where check
Signed-off-by: Joas Schilling <coding@schilljs.com>
5 years ago
Daniel Rudolf
9c052b4a06
Sort results of Manager::searchRoomsByToken() and Room::searchParticipants()
Signed-off-by: Daniel Rudolf <github.com@daniel-rudolf.de>
6 years ago
Daniel Rudolf
db4caaf2ae
Add Room::searchParticipants()
Signed-off-by: Daniel Rudolf <github.com@daniel-rudolf.de>
6 years ago
Joas Schilling
84d42604e6
Run cs:fix
Signed-off-by: Joas Schilling <coding@schilljs.com>
6 years ago
Joas Schilling
650427e01a
Reset the assigned signaling server after some time
Signed-off-by: Joas Schilling <coding@schilljs.com>
6 years ago
Joas Schilling
6ddd276dd0
Extend the signaling setting API to allow somewhat clustering
Signed-off-by: Joas Schilling <coding@schilljs.com>
6 years ago
Joas Schilling
33c4721c91
Correctly specify the parameter type on the placeholder
Signed-off-by: Joas Schilling <coding@schilljs.com>
6 years ago
Joas Schilling
e634e224ec
Also ignore guest moderators when ignoring guests
Signed-off-by: Joas Schilling <coding@schilljs.com>
6 years ago
Joas Schilling
d43ca31ba1
Ping all session ids with 1 query from the external signaling
Signed-off-by: Joas Schilling <coding@schilljs.com>
6 years ago
Joas Schilling
1d5cf96356
Reset the in-call flags when the lobby kicks in
Signed-off-by: Joas Schilling <coding@schilljs.com>
6 years ago
Joas Schilling
4440aa6ab0
Pass on all necessary options
Signed-off-by: Joas Schilling <coding@schilljs.com>
6 years ago
Joachim Bauch
fdf5dcd483
Get room properties for the signaling server from separate function.
Also dispatch an event so other apps can extend the properties to return.
Signed-off-by: Joachim Bauch <bauch@struktur.de>
6 years ago
Joas Schilling
1bf2e51dc8
Only update the named session if it is a guest
Signed-off-by: Joas Schilling <coding@schilljs.com>
6 years ago
Joas Schilling
81db771748
Add constants for event names and use pattern
Signed-off-by: Joas Schilling <coding@schilljs.com>
6 years ago
Joas Schilling
0e1d2b39b9
Typed events for Talk
Signed-off-by: Joas Schilling <coding@schilljs.com>
6 years ago
Joas Schilling
733da0c4c2
Correctly set the unread counter when readding a user to a one-to-one conversation
Signed-off-by: Joas Schilling <coding@schilljs.com>
6 years ago
Joas Schilling
d4424477fe
Also prevent starting a call on API level
Signed-off-by: Joas Schilling <coding@schilljs.com>
6 years ago
Joas Schilling
454c9c94db
Also add the user who started the call
Signed-off-by: Joas Schilling <coding@schilljs.com>
6 years ago
Joas Schilling
d4fc586f1a
Bye Spreed, hello Talk!
Signed-off-by: Joas Schilling <coding@schilljs.com>
6 years ago
Daniel Calviño Sánchez
8745fd19fe
Rename lobby constants
The lobby constants were named from the point of view of the webinary
(open to all participants, open to moderators only), but from the point
of view of the lobby it is the opposite (no lobby, lobby for non
moderators).
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
6 years ago
Joas Schilling
1136b70ec2
Fix the system message when the timer was reached
Signed-off-by: Joas Schilling <coding@schilljs.com>
6 years ago
Joas Schilling
f56ab8fe90
Prevent nested calls between setLobby and getLobbyState when the timer was reached
Signed-off-by: Joas Schilling <coding@schilljs.com>
6 years ago
Joas Schilling
8cd50644d4
Allow a timer as well
Signed-off-by: Joas Schilling <coding@schilljs.com>
6 years ago
Joas Schilling
a48650c908
Read and allow to set the lobby state
Signed-off-by: Joas Schilling <coding@schilljs.com>
6 years ago
Joas Schilling
c3d90782bc
Make sure new users don't start at the end
Signed-off-by: Joas Schilling <coding@schilljs.com>
6 years ago
Joas Schilling
54692ebac3
Change read marker to work on the comment id isntead of datetime
Signed-off-by: Joas Schilling <coding@schilljs.com>
7 years ago
Joas Schilling
a0d5a835a9
Add a new column to record who joined a call
This makes sure users that only joined the chat are not listed in the call summary
Signed-off-by: Joas Schilling <coding@schilljs.com>
6 years ago
Joas Schilling
d991e993aa
Allow changelog-convo to be a read-only convo
Signed-off-by: Joas Schilling <coding@schilljs.com>
7 years ago
Joas Schilling
79246e1d59
Start changelog implementation
Signed-off-by: Joas Schilling <coding@schilljs.com>
7 years ago
Joas Schilling
695b757754
Allow setting the read-only state of a room
Signed-off-by: Joas Schilling <coding@schilljs.com>
7 years ago
Joas Schilling
f1667ac2f7
Introduce a Read-Only state for conversations
Signed-off-by: Joas Schilling <coding@schilljs.com>
7 years ago
Joas Schilling
44619a1aee
Readd the left-participant to one-to-one rooms if needed
Signed-off-by: Joas Schilling <coding@schilljs.com>
7 years ago
Joas Schilling
a96dcaa455
Make one-to-one rooms locked
* No more guests allowed
* You can not add people to it
* You can only leave it, not delete it
Signed-off-by: Joas Schilling <coding@schilljs.com>
7 years ago
Joas Schilling
5b759b44c2
Prevent the last moderator from leaving the room
Signed-off-by: Joas Schilling <coding@schilljs.com>
7 years ago
Joachim Bauch
6e1e78ec05
Fix removing users when an old session id expires in the signaling server.
It could happen that an old session id expired while a user already re-joined
a room with a new session id. Once the old session id expired, the user got
removed from the room.
Signed-off-by: Joachim Bauch <bauch@struktur.de>
7 years ago
Joas Schilling
7e54634fb5
Make room names non-optional
Signed-off-by: Joas Schilling <coding@schilljs.com>
7 years ago
Joas Schilling
0f0a9baaae
Fix duplicated call summary message when multiple people leave at the same time
Signed-off-by: Joas Schilling <coding@schilljs.com>
7 years ago
Peter Edens
4ca16cb2e6
Add reason for removing participant from room so that hook can determine if the user was removed by moderator.
Signed-off-by: Peter Edens <petere@conceiva.com>
7 years ago
Daniel Calviño Sánchez
6bb70b3d66
Adjust param type in documentation
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
7 years ago
Daniel Calviño Sánchez
0f6cd9eb97
Allow null sessions when getting participant by session
Otherwise, due to the strict types, a type error is thrown instead of a
ParticipantNotFoundException.
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
7 years ago
Joas Schilling
d702aa0841
Use ITimeFactory instead of time()
Signed-off-by: Joas Schilling <coding@schilljs.com>
7 years ago
Joas Schilling
b742db9f0a
Fix tests
Signed-off-by: Joas Schilling <coding@schilljs.com>
7 years ago
Joas Schilling
fb90a74231
Make all classes strict
Signed-off-by: Joas Schilling <coding@schilljs.com>
7 years ago
Joas Schilling
1890687981
Also leave the room when the user tries to join and can not access the file anymore
Signed-off-by: Joas Schilling <coding@schilljs.com>
7 years ago
Joas Schilling
2d430f39e1
Use the existing method to get the participant instead of adding a new query
Signed-off-by: Joas Schilling <coding@schilljs.com>
7 years ago
Daniel Calviño Sánchez
0149b9d31d
Add "refresh-participant-list" for participants just removed
When a participant is removed or disconnected from a room the
"refresh-participant-list" signaling message is added to all the
participants in that room. However, the participant just removed or
disconnected is no longer in the room, so the message needs to be
explicitly added for that participant.
Note, however, that the participant will never receive that message from
the signaling endpoint, but a 404 error due to no longer being in the
room. In any case, this ends the pending signaling request as soon as
the participant is removed or disconnected instead of keep waiting until
the timeout ends.
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
7 years ago
Joas Schilling
021dc333dc
Use Participant objects were possible
Signed-off-by: Joas Schilling <coding@schilljs.com>
7 years ago
Joas Schilling
4afa2d7946
Do not create the participant when we don't need them
Signed-off-by: Joas Schilling <coding@schilljs.com>
7 years ago