Commit graph

19968 commits

Author SHA1 Message Date
Tulir Asokan
a95f7be22d Persist list indexes when editing
Signed-off-by: Tulir Asokan <tulir@maunium.net>
2019-10-13 14:31:32 +03:00
Tulir Asokan
29367766fd Fix "decend" typo
Signed-off-by: Tulir Asokan <tulir@maunium.net>
2019-10-13 14:31:32 +03:00
Tulir Asokan
a160bdf4df Persist code block language when editing
Signed-off-by: Tulir Asokan <tulir@maunium.net>
2019-10-13 14:31:32 +03:00
Nils J. Haugen
07dd088c10 Translated using Weblate (Norwegian Nynorsk)
Currently translated at 62.3% (1141 of 1831 strings)

Translation: Riot Web/matrix-react-sdk
Translate-URL: https://translate.riot.im/projects/riot-web/matrix-react-sdk/nn/
2019-10-13 10:53:22 +00:00
Szimszon
4d505900d4 Translated using Weblate (Hungarian)
Currently translated at 100.0% (1831 of 1831 strings)

Translation: Riot Web/matrix-react-sdk
Translate-URL: https://translate.riot.im/projects/riot-web/matrix-react-sdk/hu/
2019-10-13 10:53:20 +00:00
Jeff Huang
c41d17bb44 Translated using Weblate (Chinese (Traditional))
Currently translated at 100.0% (1831 of 1831 strings)

Translation: Riot Web/matrix-react-sdk
Translate-URL: https://translate.riot.im/projects/riot-web/matrix-react-sdk/zh_Hant/
2019-10-13 10:53:20 +00:00
Tulir Asokan
2555fcb38f Fix reply fallback being included in edit m.new_content
Signed-off-by: Tulir Asokan <tulir@maunium.net>
2019-10-13 13:32:09 +03:00
Weblate
3153c22126 Merge branch 'origin/develop' into Weblate. 2019-10-11 15:08:33 +00:00
Bruno Windels
385e83fdbc
Merge pull request #3548 from matrix-org/bwindels/composer-features-doc
Document composer features
2019-10-11 15:08:29 +00:00
J. Ryan Stinnett
e6a81c5733 Show warning dialog when changing unreachable IS
If the IS is unreachable, this handles the error by showing a warning
encouraging the user to check after their personal data and resolve the
situation, but still allows them to continue if they want.

Fixes https://github.com/vector-im/riot-web/issues/10909
2019-10-11 15:57:12 +01:00
Damir Jelić
3f53691834 RoomView: Use platform specific search if our platform supports it.
This patch extends our search to include our platform specific event
index.

There are 3 search scenarios and are handled differently when platform
support for indexing is present:

    - Search a single non-encrypted room: Use the server-side search
        like before.
    - Search a single encrypted room: Search using our platform specific
        event index.
    - Search across all rooms: Search encrypted rooms using our local
        event index. Search non-encrypted rooms using the classic
        server-side search. Combine the results.

The combined search will result in having twice the amount of search
results since comparing the scores fairly wasn't deemed sensible.
2019-10-11 16:55:01 +02:00
Damir Jelić
4acec19d40 MatrixChat: Add new crawler checkpoints if there was a limited timeline.
A sync call may not have all events that happened since the last time
the client synced. In such a case the room is marked as limited and
events need to be fetched separately.

When such a sync call happens our event index will have a gap. To
close the gap checkpoints are added to start crawling our room again.
Unnecessary full re-crawls are prevented by checking if our current
/room/roomId/messages request contains only events that were already
present in our event index.
2019-10-11 16:55:01 +02:00
Damir Jelić
5e7076e985 MatrixChat: Add live events to the event index as well. 2019-10-11 16:55:01 +02:00
Damir Jelić
b23ba5f881 MatrixChat: Stop the crawler function and delete the index when logging out. 2019-10-11 16:55:01 +02:00
Damir Jelić
9ce478cb0e MatrixChat: Create an event index and start crawling for events.
This patch adds support to create an event index if the clients platform
supports it and starts an event crawler.

The event crawler goes through the room history of encrypted rooms and
eventually indexes the whole room history of such rooms.

It does this by first creating crawling checkpoints and storing them
inside a database. A checkpoint consists of a room_id, direction and
token.

After the checkpoints are added the client starts a crawler method in
the background. The crawler goes through checkpoints in a round-robin
way and uses them to fetch historic room messages using the
rooms/roomId/messages API endpoint.

Every time messages are fetched a new checkpoint is created that will
be stored in the database with the fetched events in an atomic way, the
old checkpoint is deleted at the same time as well.
2019-10-11 16:55:01 +02:00
Damir Jelić
b8a3ee1841 BasePlatform: Add prototype methods for event indexing. 2019-10-11 16:55:01 +02:00
Weblate
a975ecb009 Merge branch 'origin/develop' into Weblate. 2019-10-11 14:54:19 +00:00
송태섭
cb11182e20 Translated using Weblate (Korean)
Currently translated at 100.0% (1831 of 1831 strings)

Translation: Riot Web/matrix-react-sdk
Translate-URL: https://translate.riot.im/projects/riot-web/matrix-react-sdk/ko/
2019-10-11 14:54:19 +00:00
Kévin C
03d1454ee7 Translated using Weblate (French)
Currently translated at 100.0% (1831 of 1831 strings)

Translation: Riot Web/matrix-react-sdk
Translate-URL: https://translate.riot.im/projects/riot-web/matrix-react-sdk/fr/
2019-10-11 14:54:18 +00:00
Travis Ralston
e0ce844f58
Merge pull request #3547 from matrix-org/travis/fix-unban
Correctly update the banned users list when a user is unbanned
2019-10-11 15:54:13 +01:00
J. Ryan Stinnett
d7631ed9f8 Catch errors in Settings when IS is unreachable
A few bits of Settings try to talk to the IS when Settings is opened. This
changes them to handle failure by logging warnings to the console.
2019-10-11 15:52:15 +01:00
Bruno Windels
52dbcdb701 add readme explaining the purpose of this directory 2019-10-11 14:21:46 +02:00
Bruno Windels
a6892e7bac document the composer features 2019-10-11 14:19:00 +02:00
Travis Ralston
61cc6c8293 Correctly update the banned users list when a user is unbanned
Fixes https://github.com/vector-im/riot-web/issues/11123

Error wasn't actually the user being unbanned twice - it was a React error about "cannot call enqueueForceUpdate of undefined", which was a binding problem with onUnbanned. However, fixing that didn't do the intended thing - the user was still shown in the settings. We now just listen for membership and  fix it that way.
2019-10-11 12:56:48 +01:00
Weblate
ab05e9eaf7 Merge branch 'origin/develop' into Weblate. 2019-10-11 08:53:32 +00:00
Kaa Jii
df01af0f66 Translated using Weblate (Italian)
Currently translated at 100.0% (1830 of 1830 strings)

Translation: Riot Web/matrix-react-sdk
Translate-URL: https://translate.riot.im/projects/riot-web/matrix-react-sdk/it/
2019-10-11 08:53:32 +00:00
Michael Telatynski
6e33cc0650
Merge pull request #3433 from matrix-org/t3chguy/nvl/react16/EventListSummary
Summarise state events after room creation
2019-10-11 09:53:26 +01:00
Weblate
91925781a7 Merge branch 'origin/develop' into Weblate. 2019-10-10 16:52:15 +00:00
Michael Telatynski
dcc948f43d
Merge pull request #3543 from matrix-org/t3chguy/timeline_keyboard_focus
Don't intercept TAB on the app outside of the composer, fix tabIndex > 0
2019-10-10 17:52:10 +01:00
David Baker
c663a57dff Add some type checking on event body 2019-10-10 17:49:21 +01:00
Weblate
557c78af27 Merge branch 'origin/develop' into Weblate. 2019-10-10 16:46:31 +00:00
David Baker
c2a5253479
Merge pull request #3546 from matrix-org/dbkr/malformed_events
Add some type checking on event body
2019-10-10 17:46:26 +01:00
Bruno Windels
7900e2292d
Merge pull request #3545 from matrix-org/bwindels/fix-edit-unmount-when-no-selection-release
Fix: edit unmount when no selection
2019-10-10 16:45:44 +00:00
David Baker
847acff894 Add some type checking on event body 2019-10-10 17:36:22 +01:00
Bruno Windels
004c3900a9 don't persist caret when selection is missing
so caret will be put back at end of editor when remounting
2019-10-10 18:35:04 +02:00
Bruno Windels
9dd93c52b0 safeguard if the offsetnode is null when determining caret position 2019-10-10 18:35:04 +02:00
Weblate
0d350c92ef Merge branch 'origin/develop' into Weblate. 2019-10-10 14:57:25 +00:00
random
efa5ae0aac Translated using Weblate (Italian)
Currently translated at 99.9% (1828 of 1830 strings)

Translation: Riot Web/matrix-react-sdk
Translate-URL: https://translate.riot.im/projects/riot-web/matrix-react-sdk/it/
2019-10-10 14:57:25 +00:00
Bruno Windels
4fa165ceea
Merge pull request #3544 from matrix-org/bwindels/fix-edit-unmount-when-no-selection
Fix: crash while canceling editing an event when no selection
2019-10-10 14:57:18 +00:00
Bruno Windels
d20b2ee9eb document how to run the e2e tests locally 2019-10-10 16:54:10 +02:00
Bruno Windels
f8a610687f don't persist caret when selection is missing
so caret will be put back at end of editor when remounting
2019-10-10 16:40:03 +02:00
Bruno Windels
905aa81bf8 safeguard if the offsetnode is null when determining caret position 2019-10-10 16:39:41 +02:00
Michael Telatynski
5643743167 Don't intercept TAB on the app outside of the composer, fix tabIndex > 0
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-10-10 14:13:29 +01:00
Travis Ralston
c141335b6a
Merge pull request #3542 from matrix-org/travis/t3chguy/settings-flags-release
"SettingsFlag always run ToggleSwitch fully controlled" to release
2019-10-10 14:10:52 +01:00
Bruno Windels
15bbf3a999 fix the lint fix 2019-10-10 12:12:13 +02:00
Bruno Windels
4b9a29cb60 put exec perms back on install script 2019-10-10 11:55:31 +02:00
Bruno Windels
867739e8be switch e2e tests to xlarge queue 2019-10-10 11:45:35 +02:00
Bruno Windels
6f9604992b copyright 2019-10-10 11:42:59 +02:00
Bruno Windels
645a9d836f install static webserver for server symlinked riot on CI 2019-10-10 11:40:04 +02:00
Weblate
2d94fe8852 Merge branch 'origin/develop' into Weblate. 2019-10-10 08:39:38 +00:00