Commit Graph

16447 Commits

Author SHA1 Message Date
Travis Ralston
aba61fa390 Revert "Support refresh tokens (#7802)"
This reverts commit 839593412c.
2022-02-16 12:32:38 -07:00
J. Ryan Stinnett
0dc1355441 Fix right panel data flow (#7811) 2022-02-16 11:19:28 +00:00
Michael Telatynski
c2cf3a2d9e Fix room create tile not showing up with hidden events shown (#7810)
* Replace m.room.create with enum

* Fix room create tile not showing up with hidden events shown
2022-02-15 21:05:41 +00: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
8d4e83084c Remove Countly analytics integration (#7808) 2022-02-15 16:58:30 +00:00
Charlie Calendre
bb5f62edce Fix add existing space not showing any spaces (#7801) 2022-02-15 13:53:20 +00:00
Michael Telatynski
0a084601c4 Abstract spotlight to allow non-room results too (#7804) 2022-02-15 13:36:32 +00:00
David Baker
5fe8442f44 Add an end-to-end test for stickers (#7733)
* Add an end-to-end test for stickers

* More logs on login

* Wait for spinners to go away

* Factor out spinner waiting as it seems useful

* Move stickers to the end

* More waiting

* When all else fails... add sleeps

* Waiting for the server picker to appear seems to work..?

* Typos

Co-authored-by: J. Ryan Stinnett <jryans@gmail.com>

* remove commented code from registration usecase

Co-authored-by: J. Ryan Stinnett <jryans@gmail.com>
2022-02-15 11:49:53 +00:00
Andy Balaam
84e15fa148 Display '(edited)' next to edited polls (#7789) 2022-02-15 08:52:51 +00:00
Michael Telatynski
6793ef33ba Use the resize observer polyfill consistently (#7796) 2022-02-14 23:59:03 +00:00
Michael Telatynski
0cf15d27dc Fix edge cases around event list summaries with hidden events and redactions (#7797) 2022-02-14 23:58:29 +00:00
Michael Telatynski
76fb2abae1 Consolidate, simplify and improve copied tooltips (#7799) 2022-02-14 23:54:46 +00:00
Michael Telatynski
8d3c2eddd6 Improve styling of edge case devtools state keys (#7794) 2022-02-14 23:37:45 +00:00
Michael Telatynski
401e5127f4 Don't scroll to bottom when executing non-message slash commands (#7793) 2022-02-14 23:36:06 +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
Michael Telatynski
ac6a356027 End-to-end test alias publishing flow (#7779) 2022-02-11 11:37:31 +00:00
Šimon Brandner
73899bb2e3 Switch to IPC channel for getDesktopCapturerSources (#7782) 2022-02-11 10:41:15 +00:00
Germain
15a9303d29 Improve thread partitioning for 2nd degree relations (#7748) 2022-02-10 15:18:55 +00:00
Michael Telatynski
87ca70edb1 Switch to web-specific screens and $pageview event (#7777) 2022-02-10 14:38:31 +00:00
Michael Telatynski
0d6ef76605 Add analytics for the ViewRoom action (#7666) 2022-02-10 14:29:55 +00:00
Michael Telatynski
20e9d0c159 Wire up more posthog properties and interactions (#7763) 2022-02-10 13:53:07 +00:00
Michael Telatynski
7668984ee4 Properly recurse subspaces for leave space dialog options (#7775) 2022-02-10 13:11:28 +00:00
Michael Telatynski
f6565bfbc8 Send how many favorited rooms a user has to Posthog (#7772) 2022-02-10 10:02:34 +00:00
Charlie Calendre
8103e606c4 Fix translation for keyboard shortcut displaynames (#7758) 2022-02-10 09:11:35 +00:00
Michael Telatynski
2f7b26214d Fix sort order for facepiles which was exactly reverse (#7771) 2022-02-10 09:06:45 +00:00
Michael Telatynski
7c344a2157 Fix state events being wrongly hidden when redacted (#7768) 2022-02-10 09:05:58 +00:00
Michael Telatynski
e2196a8731 Event List Summary guard against missing event senders (#7767) 2022-02-10 09:03:44 +00:00
Kerry
818fddd72c Add customisation point to disable space creation (#7766)
* mock matchMedia in jest setup

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

* use UIComponent.CreateSpaces in space panel

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

* lint

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

* hide add space in spacecontextmenu

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

* use UIComponent customistations in space oom view add space button

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

* copyright

Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-02-09 17:21:40 +01:00
Michael Telatynski
999e1b7421 Wire up bunch of interaction events into Posthog (#7707) 2022-02-09 14:42:08 +00:00
Michael Telatynski
5620b83d34 Wire up more Posthog tracking (#7689) 2022-02-09 14:25:58 +00:00
Charlie Calendre
254dbeeccb Fix all settings button opening sidebar settings tab (#7765) 2022-02-09 12:09:52 +00:00
Michael Telatynski
714136d4f7 Consolidate RedactionGrouper and HiddenEventGrouper into MELS (#7739) 2022-02-09 10:51:12 +00:00
J. Ryan Stinnett
59cdd3edc0 Unify widget header actions with those in right panel (#7734) 2022-02-09 10:47:41 +00:00
Michael Telatynski
91ccbe4395 Add way to track posthog user properties and send numSpaces (#7716) 2022-02-09 09:21:56 +00:00
Michael Telatynski
2b72a2cc2f Fix view source and devtools showing hljs warnings (#7759) 2022-02-09 09:09:06 +00:00
Michael Telatynski
09b88d1fbe Fix add existing space not showing any spaces (#7751) 2022-02-08 19:25:08 +00:00
Šimon Brandner
f13329213d Handle highlight notifications in timeline card button (#7762) 2022-02-08 19:03:15 +00:00
Michael Telatynski
4394c162db Inhibit Room List keyboard pass-thru when the search beta is enabled (#7752) 2022-02-08 18:31:37 +00:00
Šimon Brandner
479e7e9a25 Add unread notification dot to timeline card button (#7749) 2022-02-08 17:37:03 +00:00
J. Ryan Stinnett
bf8438cbb2 Add jump to bottom button for right panel timeline (#7746) 2022-02-08 17:35:03 +00:00
Charlie Calendre
0a45ae0781 Fix space member list not opening (#7747) 2022-02-08 16:41:26 +00:00
Michael Telatynski
760446c087 Null-guard ELS from null summaryMembers (#7744) 2022-02-08 14:26:26 +00:00
Michael Telatynski
ed185240a5 Move new search experience to a Beta (#7718) 2022-02-08 14:02:36 +00:00
Kerry
30d1ac1eea unit test basic paths in UserInfo (#7740)
* unit test main paths in UserInfo component

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

* one more test case

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

* remove BasicUserInfo export

Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-02-08 12:14:52 +00:00
Germain
af0b21de9d Improved way to retrieve event sender for thread summary (#7732) 2022-02-08 12:08:47 +00:00
Michael Telatynski
773c7f46b7 Tune aria-live regions around clocks/timers (#7735) 2022-02-08 11:20:03 +00:00
Michael Telatynski
4501308b47 Fix instances of decorated room avatar wrongly having their own tabIndex (#7730) 2022-02-08 09:17:08 +00:00
Aaron Raimist
5278679076 Capitalize "Privacy" in UserMenu (#7738) 2022-02-08 08:31:51 +00:00
Šimon Brandner
8e72118b5d Auto select "Other homeserver" when user press "Edit" in homeserver field (#7337) 2022-02-07 17:50:25 +00:00
Germain
544957bdad Use typographical quotes in no threads UI (#7713) 2022-02-07 15:13:34 +00:00