Commit Graph

19225 Commits (875c02ade9c19416dfb1398ef4dc0df3d9663fc1)

Author SHA1 Message Date
Travis Ralston 875c02ade9
Merge pull request #3614 from matrix-org/travis/recover-lost-rooms
Add some logging/recovery for lost rooms
2019-11-13 08:16:34 -07:00
Travis Ralston 3dcc92b79d Add some logging/recovery for lost rooms
Zero inserts is not normal, so we apply the same recovery technique from the categorization logic above this block: insert it to be the very first room and hope that someone complains that the room is ordered incorrectly.

There's some additional logging to try and identify what went wrong because it should definitely be inserted. The `!== 1` check is not supposed to be called, ever.

Logging for https://github.com/vector-im/riot-web/issues/11303
2019-11-12 15:39:03 -07:00
Travis Ralston fa6e02fafb Revert "Add some logging/recovery for lost rooms"
This reverts commit 1aa0ab13e6.
2019-11-12 15:38:45 -07:00
Travis Ralston 1aa0ab13e6 Add some logging/recovery for lost rooms
Zero inserts is not normal, so we apply the same recovery technique from the categorization logic above this block: insert it to be the very first room and hope that someone complains that the room is ordered incorrectly.

There's some additional logging to try and identify what went wrong because it should definitely be inserted. The `!== 1` check is not supposed to be called, ever.

Logging for https://github.com/vector-im/riot-web/issues/11303
2019-11-12 15:38:29 -07:00
Travis Ralston d0cbcb85f5
Merge pull request #3585 from matrix-org/travis/mjolnir
Add Mjolnir ban list support
2019-11-12 10:01:50 -07:00
Travis Ralston 6d0b388fa2
Merge branch 'develop' into travis/mjolnir 2019-11-12 10:00:01 -07:00
J. Ryan Stinnett c9ca8b9869
Merge pull request #3610 from matrix-org/jryans/alias-cache
Improve room switching performance with alias cache
2019-11-12 18:24:43 +02:00
J. Ryan Stinnett 3f2b77189e Simplify dispatch blocks 2019-11-12 13:29:01 +00:00
Michael Telatynski 548e38cba9 Revert "Replace all trivial Promise.defer usages with regular Promises"
This reverts commit 44401d73
2019-11-12 11:56:53 +00:00
Michael Telatynski 7a512f7299 Revert "Replace rest of defer usages using small shim. Add homebrew promise utils"
This reverts commit 6850c147
2019-11-12 11:56:43 +00:00
Michael Telatynski f9d6ed63f0 Revert "Replace Promise.delay with promise utils sleep"
This reverts commit 0a21957b
2019-11-12 11:56:32 +00:00
Michael Telatynski 168b1b68bb Revert "s/.done(/.then(/ since modern es6 track unhandled promise exceptions"
This reverts commit 09a8fec2
2019-11-12 11:56:21 +00:00
J. Ryan Stinnett d72dedb0ce Cache room alias to room ID mapping in memory
This adds very basic cache (literally just a `Map` for now) to store room alias
to room ID mappings. The improves the perceived performance of Riot when
switching rooms via browser navigation (back / forward), as we no longer try to
resolve the room alias every time.

The cache is only in memory, so reloading manually or as part of the clear cache
process will start afresh.

Fixes https://github.com/vector-im/riot-web/issues/10020
2019-11-12 11:54:41 +00:00
Michael Telatynski 09a8fec261 s/.done(/.then(/ since modern es6 track unhandled promise exceptions 2019-11-12 11:51:23 +00:00
Michael Telatynski 0a21957b2c Replace Promise.delay with promise utils sleep 2019-11-12 11:46:58 +00:00
Michael Telatynski 6850c14739 Replace rest of defer usages using small shim. Add homebrew promise utils 2019-11-12 11:45:28 +00:00
Michael Telatynski 44401d73b4 Replace all trivial Promise.defer usages with regular Promises 2019-11-12 11:40:38 +00:00
J. Ryan Stinnett cc9ef57f0e
Merge pull request #3609 from matrix-org/jryans/rounded-style-bar
Fix draw order when hovering composer format buttons
2019-11-11 17:40:58 +02:00
Travis Ralston df1d5055c0
Merge pull request #3606 from matrix-org/travis/edit-history
Use a ternary operator instead of relying on AND semantics in EditHistoryDialog
2019-11-11 08:24:07 -07:00
J. Ryan Stinnett ef05294133 Fix draw order when hovering composer format buttons
This ensures all 4 sides of a button show the hover border colour as intended.

Another part of https://github.com/vector-im/riot-web/issues/11203
2019-11-11 10:24:40 +00:00
David Baker 81ae6b5e51
Merge pull request #3608 from RiotTranslateBot/weblate-riot-web-matrix-react-sdk
Update from Weblate
2019-11-11 10:17:35 +00:00
Elwyn Malethan ab9f378019 Translated using Weblate (Welsh)
Currently translated at 0.5% (9 of 1864 strings)

Translation: Riot Web/matrix-react-sdk
Translate-URL: https://translate.riot.im/projects/riot-web/matrix-react-sdk/cy/
2019-11-11 10:06:36 +00:00
Szimszon d545a1e0b2 Translated using Weblate (Hungarian)
Currently translated at 100.0% (1864 of 1864 strings)

Translation: Riot Web/matrix-react-sdk
Translate-URL: https://translate.riot.im/projects/riot-web/matrix-react-sdk/hu/
2019-11-11 10:06:35 +00:00
Tirifto 0bfbf34c39 Translated using Weblate (Esperanto)
Currently translated at 99.9% (1862 of 1864 strings)

Translation: Riot Web/matrix-react-sdk
Translate-URL: https://translate.riot.im/projects/riot-web/matrix-react-sdk/eo/
2019-11-11 10:06:33 +00:00
Stanislav Lukeš 163f9f057f Translated using Weblate (Czech)
Currently translated at 99.9% (1863 of 1864 strings)

Translation: Riot Web/matrix-react-sdk
Translate-URL: https://translate.riot.im/projects/riot-web/matrix-react-sdk/cs/
2019-11-11 10:06:16 +00:00
Jeff Huang d8ea25403a Translated using Weblate (Chinese (Traditional))
Currently translated at 100.0% (1864 of 1864 strings)

Translation: Riot Web/matrix-react-sdk
Translate-URL: https://translate.riot.im/projects/riot-web/matrix-react-sdk/zh_Hant/
2019-11-11 10:05:53 +00:00
Slavi Pantaleev a4a0dc9c2d Translated using Weblate (Bulgarian)
Currently translated at 100.0% (1864 of 1864 strings)

Translation: Riot Web/matrix-react-sdk
Translate-URL: https://translate.riot.im/projects/riot-web/matrix-react-sdk/bg/
2019-11-11 10:05:50 +00:00
Osoitz eaac3fe3b8 Translated using Weblate (Basque)
Currently translated at 100.0% (1864 of 1864 strings)

Translation: Riot Web/matrix-react-sdk
Translate-URL: https://translate.riot.im/projects/riot-web/matrix-react-sdk/eu/
2019-11-11 10:05:49 +00:00
Besnik Bleta def4f90257 Translated using Weblate (Albanian)
Currently translated at 99.8% (1860 of 1864 strings)

Translation: Riot Web/matrix-react-sdk
Translate-URL: https://translate.riot.im/projects/riot-web/matrix-react-sdk/sq/
2019-11-11 10:05:47 +00:00
Elwyn Malethan 949ba89b4a Added translation using Weblate (Welsh) 2019-11-09 19:00:34 +00:00
Weblate 767c42ea05 Merge branch 'origin/develop' into Weblate. 2019-11-08 23:15:45 +00:00
Kévin C c46a3764c3 Translated using Weblate (French)
Currently translated at 100.0% (1864 of 1864 strings)

Translation: Riot Web/matrix-react-sdk
Translate-URL: https://translate.riot.im/projects/riot-web/matrix-react-sdk/fr/
2019-11-08 23:15:44 +00:00
Travis Ralston af396fdf60
Merge pull request #3607 from matrix-org/travis/fix-replies
Fix HTML fallback in replies
2019-11-08 16:15:38 -07:00
Travis Ralston bdcf3890a5 Fix HTML fallback in replies
Correctly encode the `body` to avoid problems down the line. We also convert newlines to `<br/>` to better represent the message as a fallback.

Fixes https://github.com/vector-im/riot-web/issues/9413
2019-11-08 16:07:11 -07:00
Travis Ralston c4d45e87ea Use a ternary operator instead of relying on AND semantics in EditHIstoryDialog
Fixes https://github.com/vector-im/riot-web/issues/11334 (probably).

`allEvents` should never have a boolean in it, so given the stack trace and the code this is my best estimate for what the problem could be. I can't reproduce the problem.
2019-11-08 15:54:48 -07:00
Weblate 937965997d Merge branch 'origin/develop' into Weblate. 2019-11-08 18:01:37 +00:00
J. Ryan Stinnett 719709250b
Merge pull request #3605 from matrix-org/jryans/rounded-style-bar
Fix rounded corners for the formatting toolbar
2019-11-08 20:01:31 +02:00
Weblate 2a2a52bd19 Merge branch 'origin/develop' into Weblate. 2019-11-08 17:50:07 +00:00
Travis Ralston de59979f79
Merge pull request #3604 from matrix-org/travis/fix-crashes
Check for a message type before assuming it is a room message
2019-11-08 10:50:00 -07:00
J. Ryan Stinnett e161e99b63 Fix rounded corners for the formatting toolbar
The formatting toolbar is meant to have rounded corners like the message action
bar.

Fixes https://github.com/vector-im/riot-web/issues/11203
2019-11-08 17:46:08 +00:00
Travis Ralston 5a5ebee918 Check for a message type before assuming it is a room message
Redacted messages do not have message types, despite being room messages. 

Fixes https://github.com/vector-im/riot-web/issues/11352

Regressed in https://github.com/matrix-org/matrix-react-sdk/pull/3601

Click-to-ping being broken (as mentioned by https://github.com/vector-im/riot-web/issues/11353) is a side effect of the react stack falling over. Once one room crashes, click-to-ping is broken everywhere.
2019-11-08 10:39:38 -07:00
Weblate aac410e1bb Merge branch 'origin/develop' into Weblate. 2019-11-08 16:58:21 +00:00
J. Ryan Stinnett eff4c36e6e
Merge pull request #3603 from matrix-org/jryans/remove-descend-hints
Remove lint comments about no-descending-specificity
2019-11-08 18:58:14 +02:00
J. Ryan Stinnett 2a5dc9bfac Remove lint comments about no-descending-specificity
We have disabled the `no-descending-specificity` stylelint rule, so we no longer
need these block comments.
2019-11-08 16:35:42 +00:00
Weblate d4fa570bee Merge branch 'origin/develop' into Weblate. 2019-11-08 16:20:49 +00:00
Walter 4fe95b0075 Translated using Weblate (Russian)
Currently translated at 99.8% (1849 of 1853 strings)

Translation: Riot Web/matrix-react-sdk
Translate-URL: https://translate.riot.im/projects/riot-web/matrix-react-sdk/ru/
2019-11-08 16:20:48 +00:00
fenuks bb5f532eeb Translated using Weblate (Polish)
Currently translated at 74.6% (1382 of 1853 strings)

Translation: Riot Web/matrix-react-sdk
Translate-URL: https://translate.riot.im/projects/riot-web/matrix-react-sdk/pl/
2019-11-08 16:20:47 +00:00
MamasLT 824a265496 Translated using Weblate (Lithuanian)
Currently translated at 50.4% (933 of 1853 strings)

Translation: Riot Web/matrix-react-sdk
Translate-URL: https://translate.riot.im/projects/riot-web/matrix-react-sdk/lt/
2019-11-08 16:20:46 +00:00
송태섭 defe3fb5f8 Translated using Weblate (Korean)
Currently translated at 100.0% (1853 of 1853 strings)

Translation: Riot Web/matrix-react-sdk
Translate-URL: https://translate.riot.im/projects/riot-web/matrix-react-sdk/ko/
2019-11-08 16:20:29 +00:00
shuji narazaki 8b3844f83b Translated using Weblate (Japanese)
Currently translated at 60.8% (1126 of 1853 strings)

Translation: Riot Web/matrix-react-sdk
Translate-URL: https://translate.riot.im/projects/riot-web/matrix-react-sdk/ja/
2019-11-08 16:20:28 +00:00