Граф коммитов

1017 Коммитов

Автор SHA1 Сообщение Дата
Joas Schilling 7a8da79e89
Add a capability
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-04-14 17:06:04 +02:00
Joas Schilling e634e224ec
Also ignore guest moderators when ignoring guests
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-04-14 17:06:04 +02:00
Joas Schilling 8b4e4da6b8
Provide a api/v2 for rooms without participants
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-04-14 17:06:02 +02:00
Joas Schilling 0a9d299639
Allow different API versions
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-04-14 17:04:44 +02:00
Joas Schilling a2e7c0a529
Merge pull request #3285 from nextcloud/bugfix/noid/merge-ping-updates
Ping all session ids with 1 query from the external signaling
2020-04-14 12:49:05 +02:00
Joas Schilling 3329d84516
Merge pull request #3287 from nextcloud/fix-invalid-config-attribute-after-merge
Fix invalid config attribute after merge
2020-04-07 14:21:56 +02:00
Joas Schilling 3919acd93d
Merge pull request #3286 from nextcloud/bugfix/noid/remove-unused-template-parameters
Remove unused template parameters
2020-04-07 14:21:31 +02:00
Joas Schilling ec253b38d9
Merge pull request #3279 from nextcloud/enh/participants_sessid_index
Add index on the session_id
2020-04-07 13:47:57 +02:00
Daniel Calviño Sánchez 71b0927bf0 Fix invalid config attribute after merge
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2020-04-07 13:19:10 +02:00
Joas Schilling 72da7fbc3b
Remove unused template parameters
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-04-07 13:07:13 +02:00
Joas Schilling d43ca31ba1
Ping all session ids with 1 query from the external signaling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-04-07 12:28:23 +02:00
Joas Schilling a88895d17d
Merge pull request #3282 from nextcloud/bugfix/noid/show-warning-and-error-on-signaling-issues
Show a warning and error on signaling issues
2020-04-07 11:39:48 +02:00
Joas Schilling 9451b80788
Merge pull request #3095 from nextcloud/feature/2285/limit-create-conversations
Limit creating public and group conversations to a group
2020-04-07 11:18:04 +02:00
Joas Schilling 16b90ecf3e
Also don't break on the API when the signaling server is down
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-04-07 11:15:11 +02:00
Roeland Jago Douma ebf3973842
Add index on the session_id
This is called from time to time as well. Especially on big instances
having this proper indexed saves a lot of row scanning.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2020-04-07 09:40:43 +02:00
Joas Schilling 4d35678ea6
Add a capability if the user can create conversations
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-04-07 09:31:54 +02:00
Joas Schilling de5c1b9b82
Limit creating public and group conversations to a group
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-04-07 09:31:52 +02:00
Daniel Calviño Sánchez 51e0ed85d0 Fix missing element for Chromium screensharing extension
In Chromium < 72 an extension is needed to share the screen
(https://github.com/nextcloud/spreed-screensharing-chrome-extension).
Once installed, the extension enables itself only in those pages that
contain an element with id "app" and class
"nc-enable-screensharing-extension" when the document is loaded.

As the element can not be added after the document has loaded and the
screen sharing should work also when Talk is enabled in other apps a
(hacky and very likely not compliant) meta element is added in the
header element to be found by the extension whenever Talk is used.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2020-04-06 21:05:39 +02:00
Joas Schilling 299f440cdb
Add a user index on the participants table
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-04-02 14:50:21 +02:00
Joas Schilling fb7d5fc185
Fix link to docs
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-04-02 11:09:28 +02:00
Joas Schilling 96ddef3112
Remove unused count attribute from rooms
Saving O(n) queries per refresh of the room list

Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-04-01 08:15:07 +02:00
Joas Schilling 06a045ed1e
Use a query that is better indexed
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-04-01 08:15:07 +02:00
Joas Schilling c396242111
Add some indexes for the main queries
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-03-31 19:17:40 +02:00
Joas Schilling fae48f89ab
Add an app config to test h264
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-03-31 11:22:33 +02:00
Joas Schilling 9b7846dd76
Merge pull request #3161 from nextcloud/techdebt/noid/combine-admin-settings
Combine the admin settings into one JS file so we watch less resources
2020-03-27 08:31:57 +01:00
Joas Schilling e5c9b76362
Fix unit tests
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-03-26 19:03:29 +01:00
Joas Schilling 21432cdb86
Combine the admin settings into one JS file so we watch less resources
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-03-26 12:10:28 +01:00
Joas Schilling 586b227920
Also bail out when the path is actually null
Apparently this can happen when a external mount was shared
that is later not available anymore

Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-03-25 19:00:52 +01:00
Joas Schilling 0effb4fb32
Merge pull request #3071 from nextcloud/bugfix/3060/fix-object-creation-with-null-value-from-oracle
Add missing casts
2020-03-17 16:41:10 +01:00
Daniel Calviño Sánchez c630a0647d Add support for opening files through Viewer
Note that the "path" property was already being passed to FilePreview,
although it was not explicitly declared.

At this time the Viewer can open only internal files, which are
available only for registered users. Therefore the Viewer is not loaded
for guests.

Also, for the time being, due to a limitation in the Viewer API, when a
file is opened the Viewer allows the user to iterate through all the
files in the directory of that file instead of through all the files in
the conversation, as it would have been expected.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2020-03-12 17:37:45 +01:00
Joas Schilling d960374fd5
Fix Room object creation with null from oracle
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-03-09 13:42:08 +01:00
Joas Schilling d6c9816622
Merge pull request #3015 from nextcloud/add-support-for-muting-other-participants
Add support for muting other participants
2020-03-09 09:30:51 +01:00
Daniel Calviño Sánchez 606c1836f8
Merge pull request #3056 from nextcloud/bugfix/3046/allow-page-reload-on-not-found-page
Allow page reload on /not-found page
2020-03-06 15:50:44 +01:00
Daniel Calviño Sánchez 4f59a87b35 Filter control messages not sent by moderators
The internal signaling server now filters signaling messages with type
"control" that are not sent by logged in moderators (including the
owner). This will be used, for example, to filter force mute messages
directly in the server, without needing to rely on the clients filtering
them.

The external signaling server already supports control messages,
although with a slightly different format (instead of being a subtype of
"message" messages they are their own "control" message). Therefore,
internally the WebUI uses the same format as the internal signaling
server for control messages and formats them as needed when sending them
to or receiving them from the external signaling server.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2020-03-06 14:53:24 +01:00
Daniel Calviño Sánchez c0c73d1e49 Send participant permissions to the external signaling server
In order to filter control messages the external signaling server needs
to know the permissions of each participant. Those permissions need to
be set when the participant joins the room or if the participant type is
changed.

All participants should have permissions to publish media and screen,
but only logged in moderators should have permission to send control
messages.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2020-03-06 14:53:24 +01:00
Daniel Calviño Sánchez 827d8660c9 Add capability for force muting other participants
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2020-03-06 14:53:24 +01:00
Joas Schilling 35db73a743
Merge pull request #3050 from nextcloud/fix-participant-type-change-with-external-signaling-server
Fix participant type change with external signaling server
2020-03-06 13:34:19 +01:00
Daniel Calviño Sánchez 174bffd845 Fix participant type change with external signaling server
The external signaling server expects to receive a "participants"
message from the backend notifier when the participants in a room
change. This message is in turn sent as a participants update signaling
message to the clients, and the WebUI updates the list of participants
whenever that message is received.

However, when the type of a participant changes the backend notifier
sent an "update" message instead, which is in turn sent as a room list
update signaling message to the clients, but it does not trigger any
update in the participants list of the WebUI.

Now a "participants" message is sent too by the backend notifier when
the participants in a room change, so the WebUI updates the list of
participants when handling the participants update signaling message;
the WebUI could have been modified to rely on the room list update
signaling message instead, but using the other message seemed more
appropriate.

Note that the already existing "update" message sent by the backend
notifier is kept for now, as removing it may break the clients in
unexpected ways (although it should go away in the future).

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2020-03-06 12:29:08 +01:00
Joas Schilling d62401dc48
Allow page reload on /not-found page
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-03-06 11:19:06 +01:00
Joas Schilling 03989f3c97
Use the attachment_folder setting
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-03-06 11:10:45 +01:00
Joas Schilling dd1fd3bbe5
Receive shares in Talk/ folder
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-03-06 11:10:45 +01:00
Joas Schilling 4a413106e2
Make sure "Left call" system message is done for the session that left
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-03-02 12:47:38 +01:00
Joas Schilling 1d5cf96356
Reset the in-call flags when the lobby kicks in
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-03-02 12:47:38 +01:00
Joas Schilling 91e866b33d
Immediate refresh the conversation on signaling command to do so
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-03-02 12:47:37 +01:00
Joas Schilling 4440aa6ab0
Pass on all necessary options
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-03-02 12:47:37 +01:00
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>
2020-03-02 12:47:37 +01:00
Daniel Calviño Sánchez 8a53d9442d
Merge pull request #2996 from nextcloud/bugfix/2991/fix-reply-notifications
Mark quote-author as mentioned also when there was no mention at all
2020-03-02 11:09:11 +01:00
Joas Schilling 1bf2e51dc8
Only update the named session if it is a guest
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-02-28 13:33:51 +01:00
Joas Schilling 2ae17259fe
Merge pull request #3001 from nextcloud/followup/2999/dont-add-default-stun-in-ui
Don't add default stun in UI on removal
2020-02-28 11:41:42 +01:00
Joas Schilling a2e30579e3
Don't add default stun in UI on removal
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-02-27 13:19:46 +01:00