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

3236 Коммитов

Автор SHA1 Сообщение Дата
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
Nextcloud bot f8823ebeb3
[tx-robot] updated from transifex 2019-02-14 01:37:13 +00:00
Joas Schilling 9169cdc539
Merge pull request #1544 from nextcloud/techdebt/noid/no-more-time
Use ITimeFactory instead of time()
2019-02-13 17:39:39 +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 13433b1000
Merge pull request #1534 from nextcloud/fix-slower-active-peers-not-included-in-user-list-returned-by-signaling
Fix slower active users not included in user list returned by signaling
2019-02-13 15:43:23 +01:00
Joas Schilling 8331d43a20
Merge pull request #1533 from nextcloud/fix-peer-creation-when-wrong-user-list-was-sent-to-the-other-peer
Fix peer creation when wrong user list was sent to the other peer
2019-02-13 15:42:38 +01:00
Joas Schilling 984a4137c4
Merge pull request #1538 from nextcloud/techdebt/noid/datetime-factory
Use the datetime factory everywhere
2019-02-13 15:41:44 +01:00
Joas Schilling 97671af85b
Ensure all properties of rooms are set
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-02-13 14:48:14 +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 0ab0e0f6dd
Merge pull request #1535 from nextcloud/techdebt/noid/strict-controllers-and-migrations
Strict controllers and migration
2019-02-13 14:26:53 +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 165a1392b5
Merge pull request #1532 from nextcloud/techdebt/noid/strict
Make all classes strict
2019-02-13 10:41:35 +01:00
Joas Schilling 4238d2a8df
That is exactly why we do all this.
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-02-13 09:50:36 +01:00
Daniel Calviño Sánchez 209be3fabf Fix reconnecting from peers with a lower session ID
In some circumstances (for example, if the signaling server provides an
incorrect list of users) the peer that received the offer can disconnect
from the peer that created the offer without causing the peer that
created the offer to disconnect from the peer that received the offer
too.

A peer only tried to connect with another peer if its session ID was
larger than the session ID of the other peer; otherwise it just waited
for the other peer to start the connection instead. This is done that
way to prevent overloading a peer joining a room.

However, in the scenario above, the peer that received the offer just
waited for the peer that created the offer to start the connection
again. As the peer that created the offer was not aware of the
disconnection it did not try to connect again, and thus they never
reconnected.

It is not possible to ensure that the peer that created the offer will
always disconnect from the peer that received the offer if the peer that
received the offer disconnects from the peer that created the offer, so
this is handled instead by making that peers with smaller session IDs
also start a connection if the peer with the larger session ID did not
in a reasonable time.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-02-13 09:44:47 +01:00
Daniel Calviño Sánchez c08f6d1077 Fix creating again an existing peer
In some circumstances (for example, if the signaling server provides an
incorrect list of users) the peer that created the offer can disconnect
from the peer that received the offer without causing the peer that
received the offer to remove the peer that created the offer.

In that situation, if the peer that created the offer then tried to
connect again with the other peer the other peer created a new "Peer"
object that was used instead of the old one. However, as the old one was
not removed, its video element (which was no longer updated) was kept
visible, hiding the video element linked to the new "Peer" object and
making it look frozen.

It is not possible to ensure that the peer that received the offer will
always remove the peer that created the offer if the peer that created
the offer disconnects from the peer that received the offer, so this is
handled instead by removing the stale "Peer" objects when new offers are
received.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-02-13 09:06:16 +01:00
Nextcloud bot ffe099e67f
[tx-robot] updated from transifex 2019-02-13 01:37:51 +00:00
Joas Schilling b742db9f0a
Fix tests
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-02-12 16:57:25 +01:00
Joas Schilling fb90a74231
Make all classes strict
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-02-12 16:07:59 +01:00
Daniel Calviño Sánchez 022466ea53 Fix slower active users not included in user list returned by signaling
When a user requests the signaling messages from the internal signaling
server first the last ping of the user is updated. Then, after waiting
for at most 30 seconds, the list of users active in the room is
returned.

That list was based on the users whose last ping happened around 30
seconds ago or less (it could be a bit longer than 30 seconds, but the
described problem remains in that case too); if other user pulled the
messages slightly before the current user and that other user did not
pull the messages again (or the chat messages, as that updates the last
ping too) before the user list was returned that other user was not
included in the list, as her last ping happened more than 30 seconds
ago.

Now the elapsed time since the last ping for users returned in the list
is longer than the timeout used for pulling messages (and chat messages)
to ensure (up to a point) that active users will be included in the list
even if it took a bit longer for them to pull messages again.

The drawback of this approach is that the internal signaling server will
now need a few more seconds to notice when a user left a call abruptly,
but before it was not immediate anyway and it should not be a common
scenario either.

Finally, note that it is unlikely that more than 40 seconds pass between
the ping is updated for the current user and the user list is returned,
but the condition to handle that case gracefully was kept to be on the
safe side.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-02-12 13:58:27 +01:00
Nextcloud bot af59422720
[tx-robot] updated from transifex 2019-02-11 01:37:45 +00:00
Nextcloud bot f2a2e028ad
[tx-robot] updated from transifex 2019-02-10 01:39:37 +00:00
Nextcloud bot f70113496b
[tx-robot] updated from transifex 2019-02-09 01:38:17 +00:00
Ivan Sein 43b1a2f42c
Merge pull request #1522 from nextcloud/fix-current-user-not-included-in-user-list-returned-by-signaling
Fix current user not included in user list returned by signaling
2019-02-08 10:16:50 +01:00
Nextcloud bot eda43a3810
[tx-robot] updated from transifex 2019-02-08 01:38:36 +00:00
Daniel Calviño Sánchez 3471b9fc39 Fix current user not included in user list returned by signaling
When a user requests the signaling messages from the internal signaling
server first the last ping of the user is updated. Then, after waiting
for at most 30 seconds, the list of users active in the room is
returned.

That list was based on the users whose last ping was more recent than 30
seconds ago, so when there were no other messages and the waiting timed
out the last ping of the current user set when the request started
happened 30 seconds ago or more, and thus the current user was not
included in the returned list (unless her ping was updated to a more
recent value by a different request, like polling for chat messages).

Now the users returned in the list are those whose last ping is more
recent than or equal to 30 seconds, or more recent than or equal to the
signaling ping of the current user if it is larger than 30 seconds.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-02-07 17:39:43 +01:00
Joas Schilling 4b3901f6ae
Merge pull request #1520 from nextcloud/feature/noid/allow-to-repost-the-last-comment
Allow to repost the last comment
2019-02-07 16:38:54 +01:00
Joas Schilling a16d355d39
Update js/views/chatview.js 2019-02-07 14:45:09 +01:00
Joas Schilling 0a74c0ee01
Allow to repost the last comment
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-02-07 13:16:48 +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
Nextcloud bot 557cb76bbb
[tx-robot] updated from transifex 2019-02-07 01:41:08 +00:00
Joas Schilling b552e4731e
Merge pull request #1510 from nextcloud/fix-editable-text-label-for-guest-names
Fix editable text label for guest names
2019-02-06 10:08:05 +01:00
Joas Schilling aa47517494
Merge pull request #1504 from nextcloud/fix-the-fix-for-icons-in-dark-mode
Fix the fix for icons in dark mode
2019-02-06 09:59:39 +01:00
Joas Schilling 834f09e0e1
Merge pull request #1514 from nextcloud/add-acceptance-tests-for-requesting-the-password-of-a-link-share
Add acceptance tests for requesting the password of a link share
2019-02-06 09:41:14 +01:00
Daniel Calviño Sánchez 96bab15f12 Add acceptance tests for public share authentication page to Drone
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-02-05 16:48:03 +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
Joas Schilling 7a10cb94b2
Merge pull request #1507 from nextcloud/add-acceptance-tests-for-files-app
Add acceptance tests for Files app
2019-02-05 14:44:59 +01:00
Daniel Calviño Sánchez 3c78f92f2c Fix guest name input field and submit button in public share auth page
"guest.css" overrides the default style of inputs set in "input.scss",
which causes all inputs in the public share auth page to look like the
main password input. Due to this, the rules from "input.scss" need to be
restored for inputs in the Talk sidebar to get the proper appearance.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-02-04 14:18:42 +01:00
Daniel Calviño Sánchez c2ac08ddda Fix edit guest name button in public share auth page
"guest.css" sets ".button" elements to inline-block display, but the
edit button, which is a "span", is expected to be displayed as inline to
get the proper size.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-02-04 14:11:11 +01:00
Daniel Calviño Sánchez 80bcebba51 Fix edit guest name button in public chats
When the editable text label for room names was fixed the rules were
added for all editable text labels, which broke the editable text label
for guest names. Those rules are now applied only to room names, which
implicitly fixes guest names.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-02-04 14:10:33 +01:00
Nextcloud bot f18ae33916
[tx-robot] updated from transifex 2019-02-03 01:31:52 +00:00
Nextcloud bot 504a88caa9
[tx-robot] updated from transifex 2019-02-02 01:31:12 +00:00
Anton Stuetz cb7781974a Own video is too big, setting it to 22%
Signed-off-by: Anton Stuetz <disposable@ti-zero.com>
2019-02-01 17:11:44 +01:00
Daniel Calviño Sánchez b1b941f5d2 Add acceptance tests for Files app to Drone
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-02-01 16:47:51 +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
Ivan Sein aa7620e6ef
Merge pull request #1503 from nextcloud/add-acceptance-tests-for-room-shares
Add acceptance tests for room shares
2019-02-01 15:32:31 +01:00
Daniel Calviño Sánchez 3d1a84e2e5 Fix close button of Files app sidebar during calls in dark mode
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-02-01 14:07:12 +01:00