Joas Schilling
6edc52c58c
Fix unit tests from #1453
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-02-21 14:30:20 +01:00
Joas Schilling
9c9dac5ff5
Adjust tests to the new executor
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-02-20 12:17:37 +01:00
Joas Schilling
098a8b61df
Escape arguments correctly
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-02-20 12:17:35 +01:00
Joas Schilling
57d04a562e
Do not load unnecessary classes in Application
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-02-14 08:50:37 +01:00
Joas Schilling
d702aa0841
Use ITimeFactory instead of time()
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-02-13 16:03:25 +01:00
Joas Schilling
2aec53cb49
Use the datetime factory everywhere
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-02-13 14:27:35 +01:00
Joas Schilling
56460baaf2
Strict controllers and migration
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-02-13 13:38:55 +01:00
Joas Schilling
b742db9f0a
Fix tests
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-02-12 16:57:25 +01:00
Joas Schilling
5a5cd48a77
Merge pull request #1502 from nextcloud/bugfix/noid/remove-room-information-unless-authenticated
...
Remove room information for users which are not a participant
2019-02-07 08:11:38 +01:00
Daniel Calviño Sánchez
ad26f2ce9b
Add acceptance tests for chat in the public share authentication page
...
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-02-05 16:48:03 +01:00
Daniel Calviño Sánchez
b3f65b742d
Add basic acceptance tests for the public share authentication page
...
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-02-05 16:48:03 +01:00
Daniel Calviño Sánchez
6a1446582d
Add acceptance tests for chatting in the chat tab of the Files app
...
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-02-01 16:47:41 +01:00
Daniel Calviño Sánchez
db0302e7b7
Add acceptance tests for file rooms in Talk main UI
...
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-02-01 16:46:36 +01:00
Daniel Calviño Sánchez
7faf1dcd90
Add acceptance tests for opening the chat tab in the Files app
...
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-02-01 16:46:36 +01:00
Daniel Calviño Sánchez
f7bb94d379
Fix locator when asserting that the chat view is shown in the main view
...
To check that the chat view is shown in the main view the ancestor
locator of the chat view must be the main view; if the chat ancestor set
in other steps is used it just checks that the chat view is shown
somewhere, but it does not guarantee that it is shown in the main view.
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-02-01 16:44:48 +01:00
Daniel Calviño Sánchez
8d0ae54b4a
Add acceptance test for sharing a file with a room from the Files app
...
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-02-01 09:52:47 +01:00
Daniel Calviño Sánchez
18e0a04e0a
Add acceptance test for sharing a file in a group room
...
As the scenario should be played by three actors a new one, named "Jim"
for consistency with the acceptance tests of the server, was introduced.
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-02-01 09:35:30 +01:00
Daniel Calviño Sánchez
2da642e8d1
Add acceptance test for sharing a file in a one-to-one room
...
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-02-01 09:21:51 +01:00
Joas Schilling
a1f6e63bea
adjust the tests
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-01-31 20:58:20 +01:00
Joas Schilling
c060066a81
Fix app name
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-01-30 15:03:25 +01:00
Joas Schilling
89495851fc
Do not show room names when the user is not part of it
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-01-30 12:13:24 +01:00
Joas Schilling
ae6c1fcc67
Merge pull request #1426 from nextcloud/fix-display-name-of-reshare-with-one-to-one-room-not-invited-to
...
Fix display name of reshare with one-to-one room not invited to
2019-01-30 11:12:30 +01:00
Joas Schilling
f5df2d7d3b
Correctly compare the correct user to the owner
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-01-28 14:30:01 +01:00
Daniel Calviño Sánchez
81fd677538
Fix display name of reshare with one-to-one room not invited to
...
The display name of reshares with one-to-one rooms not invited to was
always set to the display name of the last participant. Now it includes
the name of both participants in the room instead.
Note that this is not needed for deleted shares, as in that case only
shares by the user, not reshares, need to be formatted.
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-12-20 15:03:08 +01:00
Joachim Bauch
3ad0b1bd97
Add hook to allow returning additional data for clients joining a room.
...
Signed-off-by: Joachim Bauch <bauch@struktur.de>
2018-12-18 15:40:43 +01:00
Joas Schilling
ed110adf70
Merge pull request #1351 from nextcloud/adjust-tests-to-check-that-updating-a-received-share-is-forbidden
...
Adjust tests to check that updating a received share is forbidden
2018-12-12 12:55:17 +01:00
Joas Schilling
22b8d3adbc
Merge pull request #1356 from nextcloud/fix-run-docker.sh-with-postgresql-10.5
...
Fix "run-docker.sh" with PostgreSQL 10.5
2018-12-11 17:07:37 +01:00
Daniel Calviño Sánchez
ac2b053c1f
Bump server version in the helper app for integration tests
...
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-12-10 17:12:48 +01:00
Daniel Calviño Sánchez
7bf78e1771
Fix "run-docker.sh" with PostgreSQL 10.5
...
In the original "fix" (spoiler alert: the fix was wrong) "POSTGRES_DB"
ended being empty due to "$DATABASE_NAME_dummy" being parsed as a full
variable name, instead of "$DATABASE_NAME" followed by the string
"_dummy".
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-12-10 17:07:19 +01:00
Joas Schilling
6af08fd207
Fix unit tests, regression from #1344
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-12-10 12:10:51 +01:00
Daniel Calviño Sánchez
427116dde2
Adjust tests to check that updating a received share is forbidden
...
Updating a received share is no longer allowed by the server, so the
integration tests have to be adjusted to the new behaviour.
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-12-10 11:45:01 +01:00
Joas Schilling
0a39d9d0a4
Split up running of the integration tests so they don't timeout
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-12-06 14:49:26 +01:00
Joas Schilling
30e028eb1a
Fix acceptance tests regression from #1275
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-12-05 12:43:03 +01:00
Joas Schilling
3e93df0591
Allow to autocomplete users which are not in the room but have access to the file
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-12-03 15:51:00 +01:00
Joas Schilling
031d0957f1
Rename included class from "ShareManager" to "IShareManager"
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-12-03 15:50:17 +01:00
Joas Schilling
902ec4a68f
Merge pull request #1271 from nextcloud/improve-performance-of-the-list-of-chat-messages
...
Improve performance of the list of chat messages
2018-11-20 13:18:48 +01:00
Daniel Calviño Sánchez
31e31a6f00
Adjust acceptance tests to the virtual list for the message list
...
As the virtual list removes its child elements that are no longer
visible the index of the messages in the acceptance test is no longer an
absolute index for the whole list, but an index only for the currently
visible messages. However, as all the messages sent in each test fit in
the available space no message is hidden and the previous indexes are
still valid.
The only change needed is in the locator for chat messages; as they are
declared as direct children of their parent now they must be set as
descendants of the wrapper instead of as descendants of the message list
itself.
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-11-20 12:18:15 +01:00
Ivan Sein
17135c9f87
Merge pull request #1286 from nextcloud/add-session-to-participant
...
Add session & participantFlags to participant
2018-11-20 11:48:03 +01:00
Daniel Calviño Sánchez
9509d4bee6
Add integration tests for getting the list of files including shares
...
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-11-13 11:25:31 +01:00
Daniel Calviño Sánchez
6eb1783691
Add integration tests for getting shares of a deleted file
...
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-11-13 11:25:31 +01:00
Joas Schilling
4afa2d7946
Do not create the participant when we don't need them
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-11-12 11:35:31 +01:00
Joas Schilling
b7d907700d
Merge pull request #1268 from nextcloud/add-ability-to-invite-groups
...
Add ability to invite groups
2018-11-09 11:33:14 +01:00
Daniel Calviño Sánchez
294be0c05e
Get shared with e-mail from the share instead of from the room name
...
This prepares the code for future changes in which the password could be
requested for other types of shares.
Note that the notification of a password request is just a regular call
notification; thus, the share is not provided in the notification
parameters and it has to be got from the ID of the object associated to
the room (as in "share:password" rooms the object ID is the share
token).
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-11-07 15:57:37 +01:00
Joas Schilling
6c06a87133
Adjust capability
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-11-06 19:33:25 +01:00
Mario Danic
9c74620453
Add ability to invite groups
...
Fix a missing ,
Move to tabs
2018-11-06 16:20:35 +01:00
Joas Schilling
0e592d0a83
Merge pull request #1229 from nextcloud/bugfix/1227/exception-on-too-long-chat-message
...
Handle exception on too long chat message gracefully
2018-10-09 14:47:19 +02:00
Joas Schilling
947cc2b4c4
Fix subject when notified about ordinary chat message
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-10-08 17:15:51 +02:00
Joas Schilling
6790f90796
Add unit tests for the new RoomController method
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-10-08 16:59:42 +02:00
Joas Schilling
64e2625746
Add a capability
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-10-08 15:26:45 +02:00
Joas Schilling
237126cc65
Adjust unit tests with the newest changes
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-10-05 10:58:43 +02:00