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

449 Коммитов

Автор SHA1 Сообщение Дата
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
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 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 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 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 fae48f89ab
Add an app config to test h264
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-03-31 11:22:33 +02: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 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 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
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 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
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
Joas Schilling d4383c15d3
Try to create the target folder
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-02-25 10:14:58 +01:00
Joas Schilling 531b5a9aad
Allow to select an attachment folder
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-02-25 09:50:00 +01:00
Joas Schilling ba9977b8a7
Fix default notification selection
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-02-07 11:15:34 +01:00
Jakob Röhrl c63d0b905f
1st try default group notification setting
Signed-off-by: Jakob Röhrl <jakob.roehrl@web.de>
2020-02-07 11:15:34 +01:00
Joas Schilling 670ef340d2
Mark own messages immediatelly read
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-01-28 16:59:48 +01:00
Joas Schilling 76709508b8
Fix adding members from circles
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-01-23 09:08:38 +01:00
Joas Schilling 8f49fae760
Check if circles is enabled
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-01-22 18:27:28 +01:00
Joas Schilling d547cc6d0e
Fix redirect on "Talk to …" links
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-01-17 12:36:40 +01:00
Joas Schilling f565bdb3e3
Only check local invited or regular users
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-12-20 10:52:52 +01:00
Joas Schilling f0293227a9
Allow to add circles to existing conversations
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-12-20 10:52:52 +01:00
Joas Schilling 6f19e9ddfd
Allow to start conversations with circles
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-12-20 10:52:52 +01:00
Joas Schilling 5b72a671bc
Merge pull request #2502 from nextcloud/bugfix/noid/typed-events
Typed events
2019-12-06 11:52:16 +01:00
Joas Schilling 21114875c5
Correctly return parents for lookIntoFuture=1
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-12-04 08:37:26 +01:00
Joas Schilling eed4a254b8
Add a dedicated method to the model
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-12-04 08:37:26 +01:00
Joas Schilling 3496c7faaa
Add a flag to messages if they can be replied to
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-12-04 08:37:26 +01:00
Joas Schilling 81db771748
Add constants for event names and use pattern
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-12-04 08:36:59 +01:00
Joas Schilling 0e1d2b39b9
Typed events for Talk
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-12-04 08:36:59 +01:00
Joas Schilling a649f269da
Use the same template for both cases
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-11-13 12:34:14 +01:00
Joas Schilling fa4cd9989d
Immediately add a new conversation to the list
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-10-23 15:45:24 +02:00
Joas Schilling 5ab5ff47b8
Add a setting to disable files and public sharing integration
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-10-21 15:12:19 +02:00
Joas Schilling ad1b6ffefa
Remove dead method (the code was merged into addParticipantToRoom already)
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-10-10 11:19:23 +02:00
Joas Schilling 1a3a6e85d0
Move GuestController to EnviromentAware
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-10-10 11:19:22 +02:00
Joas Schilling 8aa2aa2efe
Remove unwanted, undocumented and unused methods from Commands controller
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-10-10 11:19:22 +02:00
Joas Schilling 672409118a
Update the Webinar(y) controller to the latest
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-10-10 11:19:22 +02:00
Joas Schilling d29b91df64
Make sure the controller also works for guests
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-10-01 09:25:19 +02:00
Joas Schilling 7314559199
More IShare::TYPE_* fixes
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-10-01 09:25:19 +02:00
Joas Schilling 9c6415cf6a
Merge the two controllers
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-10-01 09:25:18 +02:00
Joas Schilling ddc8e2b04f
Prepend the conversation mention only if it start with the match
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-09-27 12:36:46 +02:00
Daniel Calviño Sánchez c1e66878fe Override the current user when getting the room for a public share page
The public share page uses the incognito mode, so "OC.getCurrentUser()"
never returns a user, even if the user is actually logged in. However,
Talk API requests honour the actual current user, so the Talk UI needs
to honour it as well.

Moreover, when the external signaling server is used, the Talk UI needs
to honour the current user not only to show the right user name and
avatar, but to be able to even connect with the external signaling
server.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-09-26 10:54:28 +02:00