5303 Commits

Author SHA1 Message Date
RiotRobot ba55473a0e Merge branch 'master' into develop 2022-02-17 12:20:46 +00:00
RiotRobot 8e480c72d3 v1.10.4 2022-02-17 12:14:55 +00:00
RiotRobot bae36cbc59 Upgrade matrix-react-sdk to 3.40.1 2022-02-17 12:11:41 +00:00
RiotRobot b46c241c96 Upgrade matrix-js-sdk to 15.5.2 2022-02-17 12:11:12 +00:00
RiotRobot c19aa957b6 Merge branch 'master' into develop 2022-02-17 12:08:14 +00:00
RiotRobot 5892d8b733 v3.40.1 2022-02-17 11:55:35 +00:00
RiotRobot da6b6b3bc0 Upgrade matrix-js-sdk to 15.5.2 2022-02-17 11:52:34 +00:00
Travis Ralston aba61fa390 Revert "Support refresh tokens (#7802)"
This reverts commit 839593412c.
2022-02-16 12:32:38 -07:00
Travis Ralston 839593412c Support refresh tokens (#7802)
MSC: https://github.com/matrix-org/matrix-doc/pull/2918
Fixes https://github.com/vector-im/element-web/issues/18698
Fixes https://github.com/vector-im/element-web/issues/20648
**Requires https://github.com/matrix-org/matrix-js-sdk/pull/2178**

**Note**: There's a lot of logging in this PR. That is intentional to ensure that if/when something goes wrong we can chase the exact code path. It does not log any tokens - just where the code is going. Overall, it should be fairly low volume spam (and can be relaxed at a later date).

----

This approach uses indexeddb (through a mutex library) to manage which tab actually triggers the refresh, preventing issues where multiple tabs try to update the token. If multiple tabs update the token then the server might consider the account hacked and hard logout all the tokens.

If for some reason the timer code gets it wrong, or the user has been offline for too long and the token can't be refreshed, they should be sent to a soft logout screen by the server. This will retain the user's encryption state - they simply need to reauthenticate to get an active access token again.

This additionally contains a change to fix soft logout not working, per the issue links above.

Of interest may be the IPC approach which was ultimately declined in favour of this change instead: https://github.com/matrix-org/matrix-react-sdk/pull/7803
2022-02-15 20:16:49 +00:00
Michael Telatynski cfa6e266cd Wire up new fields on the ViewRoom posthog event and more interactions (#7787) 2022-02-14 19:31:13 +00:00
Travis Ralston 9141225a79 Add jest-mock to dependencies (#7800)
It's being used by the chat export test, but is not listed as a dependency.

If we rely on it, we should rely on it.
2022-02-14 19:29:08 +00:00
RiotRobot f14450fdd2 Merge branch 'master' into develop 2022-02-14 18:30:44 +00:00
RiotRobot 4532999582 v1.10.3 2022-02-14 18:26:34 +00:00
RiotRobot 388df406b1 Reset back to develop branch 2022-02-14 15:56:52 +00:00
RiotRobot 5552ac0624 Merge branch 'master' into develop 2022-02-14 15:53:03 +00:00
RiotRobot fd9016b5f1 v1.10.2 2022-02-14 15:47:15 +00:00
RiotRobot b723889dc2 Upgrade matrix-react-sdk to 3.40.0 2022-02-14 15:44:14 +00:00
RiotRobot dd8855cffc Upgrade matrix-js-sdk to 15.5.1 2022-02-14 15:43:19 +00:00
RiotRobot 9b3af6c493 Reset back to develop branch 2022-02-14 15:41:31 +00:00
RiotRobot 8c62945096 Resetting package fields for development 2022-02-14 15:39:36 +00:00
RiotRobot 0304d3245c Merge branch 'master' into develop 2022-02-14 15:39:33 +00:00
RiotRobot f7e6250599 v3.40.0 2022-02-14 15:23:26 +00:00
RiotRobot 7558568158 Upgrade matrix-js-sdk to 15.5.1 2022-02-14 15:19:06 +00:00
J. Ryan Stinnett fa64d65e6e Remove postcss-extend (#21046) 2022-02-11 14:22:56 +00:00
Michael Telatynski 87ca70edb1 Switch to web-specific screens and $pageview event (#7777) 2022-02-10 14:38:31 +00:00
Michael Telatynski fd832488f1 Update slash command posthog enum (#7776) 2022-02-10 13:11:10 +00:00
Michael Telatynski f6565bfbc8 Send how many favorited rooms a user has to Posthog (#7772) 2022-02-10 10:02:34 +00:00
Michael Telatynski 5620b83d34 Wire up more Posthog tracking (#7689) 2022-02-09 14:25:58 +00:00
RiotRobot c4b75669ed v1.10.2-rc.2 2022-02-09 10:37:16 +00:00
RiotRobot 74f117f7e6 Upgrade matrix-react-sdk to 3.40.0-rc.2 2022-02-09 10:32:51 +00:00
RiotRobot db34ff8174 v3.40.0-rc.2 2022-02-09 10:27:18 +00:00
Kerry ebb1feee50 Basic script to create react component with test and style files (#7757)
* basically working script

Signed-off-by: Kerry Archibald <kerrya@element.io>

* add test template

* add skinned-sdk import to test temp

* remove extra import

Signed-off-by: Kerry Archibald <kerrya@element.io>

* comments

Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-02-09 10:33:21 +01:00
Michael Telatynski 91ccbe4395 Add way to track posthog user properties and send numSpaces (#7716) 2022-02-09 09:21:56 +00:00
RiotRobot 37c81f39f6 v1.10.2-rc.1 2022-02-08 15:51:57 +00:00
RiotRobot 041447e57d Upgrade matrix-react-sdk to 3.40.0-rc.1 2022-02-08 15:49:29 +00:00
RiotRobot 35a434df40 Upgrade matrix-js-sdk to 15.5.1-rc.1 2022-02-08 15:46:47 +00:00
RiotRobot 4c3c20ae62 v3.40.0-rc.1 2022-02-08 15:40:30 +00:00
RiotRobot ec571ddd8d Upgrade matrix-js-sdk to 15.5.1-rc.1 2022-02-08 15:37:07 +00:00
J. Ryan Stinnett 7f3f186044 Switch back to upstream Linkify (#7677) 2022-02-04 17:21:03 +00:00
Kerry 292971dd0e Upgrade to jest 27 (#7699)
* use jest@27.4.0, replace jest-environment-jsdom-sixteen with jest-environment-jsdom

Signed-off-by: Kerry Archibald <kerrya@element.io>

* polyfill setImmediate

Signed-off-by: Kerry Archibald <kerrya@element.io>

* remove done from async test cases

* useRealTimers in test relying on promise flushing

Signed-off-by: Kerry Archibald <kerrya@element.io>

* remove jest environment file

Signed-off-by: Kerry Archibald <kerrya@element.io>

* replace ts-jest mocked with jest utils mocked

Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-02-02 13:02:17 +01:00
RiotRobot 0041ad7230 Merge branch 'master' into develop 2022-02-01 16:05:19 +00:00
RiotRobot e70c52eaec v1.10.1 2022-02-01 15:59:50 +00:00
RiotRobot b41c899a91 Upgrade matrix-react-sdk to 3.39.1 2022-02-01 15:56:35 +00:00
RiotRobot e90885dd9d Merge branch 'master' into develop 2022-02-01 15:52:12 +00:00
RiotRobot 34a95f4d27 v3.39.1 2022-02-01 15:50:26 +00:00
Michael Telatynski 8dd0722e04 Update eventName=Screen to $screen to match PostHog's special behaviour (#7667) 2022-02-01 15:49:49 +00:00
RiotRobot e6488e7e16 Reset matrix-react-sdk back to develop branch 2022-01-31 15:08:16 +00:00
RiotRobot 22ace3c597 Reset matrix-js-sdk back to develop branch 2022-01-31 15:08:03 +00:00
RiotRobot 6113812307 v1.10.0 2022-01-31 15:03:52 +00:00
RiotRobot 84b47f20b9 Upgrade matrix-react-sdk to 3.39.0 2022-01-31 15:02:10 +00:00