Commit Graph

19860 Commits (c02beb9ba30aebb81c294783197b06e9bb651708)

Author SHA1 Message Date
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
Michael Telatynski 7160922b77
Merge pull request #3541 from matrix-org/t3chguy/fix_150rc1
SettingsFlag always run ToggleSwitch fully-controlled
2019-10-10 09:39:33 +01:00
Weblate fb50db5695 Merge branch 'origin/develop' into Weblate. 2019-10-10 08:13:13 +00:00
Sava Radoš eb3e2e5049 Translated using Weblate (Serbian (latin))
Currently translated at 1.2% (22 of 1830 strings)

Translation: Riot Web/matrix-react-sdk
Translate-URL: https://translate.riot.im/projects/riot-web/matrix-react-sdk/sr_Latn/
2019-10-10 08:13:13 +00:00
Sava Radoš 7a3bf5639f Translated using Weblate (Serbian)
Currently translated at 55.7% (1020 of 1830 strings)

Translation: Riot Web/matrix-react-sdk
Translate-URL: https://translate.riot.im/projects/riot-web/matrix-react-sdk/sr/
2019-10-10 08:13:12 +00:00
송태섭 6427054d66 Translated using Weblate (Korean)
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/ko/
2019-10-10 08:13:12 +00:00
jadiof 103d7fe748 Translated using Weblate (German)
Currently translated at 84.0% (1537 of 1830 strings)

Translation: Riot Web/matrix-react-sdk
Translate-URL: https://translate.riot.im/projects/riot-web/matrix-react-sdk/de/
2019-10-10 08:13:11 +00:00
Kévin C c37ea98cd0 Translated using Weblate (French)
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/fr/
2019-10-10 08:13:11 +00:00
Claus Conrad 116425f346 Translated using Weblate (Danish)
Currently translated at 29.6% (542 of 1830 strings)

Translation: Riot Web/matrix-react-sdk
Translate-URL: https://translate.riot.im/projects/riot-web/matrix-react-sdk/da/
2019-10-10 08:13:11 +00:00