Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 2d3626f

Browse files
committed
Merge branch 'develop' into posthog-widget-embedding
2 parents 7b6841a + c3809d3 commit 2d3626f

File tree

258 files changed

+5057
-5517
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

258 files changed

+5057
-5517
lines changed

.github/CODEOWNERS

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1-
* @matrix-org/element-web
1+
* @matrix-org/element-web
2+
/.github/workflows/** @matrix-org/element-web-app-team
3+
/package.json @matrix-org/element-web-app-team
4+
/yarn.lock @matrix-org/element-web-app-team

.github/workflows/cypress.yaml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
- name: Get commit details
4444
id: commit
4545
if: github.event.workflow_run.event == 'pull_request'
46-
uses: actions/github-script@v5
46+
uses: actions/github-script@v6
4747
with:
4848
script: |
4949
const response = await github.rest.git.getCommit({
@@ -82,7 +82,7 @@ jobs:
8282
# Run 4 instances in Parallel
8383
runner: [1, 2, 3, 4]
8484
steps:
85-
- uses: actions/checkout@v2
85+
- uses: actions/checkout@v3
8686
with:
8787
# XXX: We're checking out untrusted code in a secure context
8888
# We need to be careful to not trust anything this code outputs/may do
@@ -96,13 +96,12 @@ jobs:
9696
- name: 📥 Download artifact
9797
uses: dawidd6/action-download-artifact@v2
9898
with:
99-
workflow: element-build-and-test.yaml
10099
run_id: ${{ github.event.workflow_run.id }}
101100
name: previewbuild
102101
path: webapp
103102

104103
- name: Run Cypress tests
105-
uses: cypress-io/github-action@v4.1.1
104+
uses: cypress-io/github-action@v4.2.2
106105
with:
107106
# The built-in Electron runner seems to grind to a halt trying
108107
# to run the tests, so use chrome.
@@ -147,7 +146,7 @@ jobs:
147146

148147
- name: Upload Artifact
149148
if: failure()
150-
uses: actions/upload-artifact@v2
149+
uses: actions/upload-artifact@v3
151150
with:
152151
name: cypress-results
153152
path: |

.github/workflows/element-web.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
name: "Build Element-Web"
1818
runs-on: ubuntu-latest
1919
steps:
20-
- uses: actions/checkout@v2
20+
- uses: actions/checkout@v3
2121

2222
- uses: actions/setup-node@v3
2323
with:
@@ -46,7 +46,7 @@ jobs:
4646
working-directory: ./element-web
4747

4848
- name: Upload Artifact
49-
uses: actions/upload-artifact@v2
49+
uses: actions/upload-artifact@v3
5050
with:
5151
name: previewbuild
5252
path: element-web/webapp

.github/workflows/i18n_check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- name: "Get modified files"
1313
id: changed_files
1414
if: github.event_name == 'pull_request' && github.event.pull_request.user.login != 'RiotTranslateBot'
15-
uses: tj-actions/changed-files@v19
15+
uses: tj-actions/changed-files@v34
1616
with:
1717
files: |
1818
src/i18n/strings/*

.github/workflows/notify-element-web.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
if: github.repository == 'matrix-org/matrix-react-sdk'
1313
steps:
1414
- name: Notify element-web repo that a new SDK build is on develop
15-
uses: peter-evans/repository-dispatch@v1
15+
uses: peter-evans/repository-dispatch@v2
1616
with:
1717
token: ${{ secrets.ELEMENT_BOT_TOKEN }}
1818
repository: vector-im/element-web

.github/workflows/static_analysis.yaml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
name: "Typescript Syntax Check"
1515
runs-on: ubuntu-latest
1616
steps:
17-
- uses: actions/checkout@v2
17+
- uses: actions/checkout@v3
1818

1919
- uses: actions/setup-node@v3
2020
with:
@@ -44,6 +44,12 @@ jobs:
4444
permissions:
4545
pull-requests: read
4646
checks: write
47+
strategy:
48+
fail-fast: false
49+
matrix:
50+
args:
51+
- '--strict --noImplicitAny'
52+
- '--noImplicitAny'
4753
steps:
4854
- uses: actions/checkout@v3
4955

@@ -69,7 +75,7 @@ jobs:
6975
use-check: false
7076
check-fail-mode: added
7177
output-behaviour: annotate
72-
ts-extra-args: '--strict --noImplicitAny'
78+
ts-extra-args: ${{ matrix.args }}
7379
files-changed: ${{ steps.files.outputs.files_updated }}
7480
files-added: ${{ steps.files.outputs.files_created }}
7581
files-deleted: ${{ steps.files.outputs.files_deleted }}
@@ -83,7 +89,7 @@ jobs:
8389
name: "Rethemendex Check"
8490
runs-on: ubuntu-latest
8591
steps:
86-
- uses: actions/checkout@v2
92+
- uses: actions/checkout@v3
8793

8894
- run: ./res/css/rethemendex.sh
8995

@@ -93,7 +99,7 @@ jobs:
9399
name: "ESLint"
94100
runs-on: ubuntu-latest
95101
steps:
96-
- uses: actions/checkout@v2
102+
- uses: actions/checkout@v3
97103

98104
- uses: actions/setup-node@v3
99105
with:
@@ -110,7 +116,7 @@ jobs:
110116
name: "Style Lint"
111117
runs-on: ubuntu-latest
112118
steps:
113-
- uses: actions/checkout@v2
119+
- uses: actions/checkout@v3
114120

115121
- uses: actions/setup-node@v3
116122
with:
@@ -127,7 +133,7 @@ jobs:
127133
name: "Analyse Dead Code"
128134
runs-on: ubuntu-latest
129135
steps:
130-
- uses: actions/checkout@v2
136+
- uses: actions/checkout@v3
131137

132138
- uses: actions/setup-node@v3
133139
with:

.github/workflows/tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- name: Checkout code
18-
uses: actions/checkout@v2
18+
uses: actions/checkout@v3
1919

2020
- name: Yarn cache
2121
uses: actions/setup-node@v3
@@ -38,7 +38,7 @@ jobs:
3838
run: "yarn coverage --ci --reporters github-actions --max-workers ${{ steps.cpu-cores.outputs.count }}"
3939

4040
- name: Upload Artifact
41-
uses: actions/upload-artifact@v2
41+
uses: actions/upload-artifact@v3
4242
with:
4343
name: coverage
4444
path: |
@@ -49,7 +49,7 @@ jobs:
4949
name: Element Web Integration Tests
5050
runs-on: ubuntu-latest
5151
steps:
52-
- uses: actions/checkout@v2
52+
- uses: actions/checkout@v3
5353

5454
- uses: actions/setup-node@v3
5555
with:

CHANGELOG.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,31 @@
1+
Changes in [3.62.0](https://github.com/matrix-org/matrix-react-sdk/releases/tag/v3.62.0) (2022-12-06)
2+
=====================================================================================================
3+
4+
## ✨ Features
5+
* Further improve replies ([\#6396](https://github.com/matrix-org/matrix-react-sdk/pull/6396)). Fixes vector-im/element-web#19074, vector-im/element-web#18194 vector-im/element-web#18027 and vector-im/element-web#19179.
6+
* Enable users to join group calls from multiple devices ([\#9625](https://github.com/matrix-org/matrix-react-sdk/pull/9625)).
7+
* fix(visual): make cursor a pointer for summaries ([\#9419](https://github.com/matrix-org/matrix-react-sdk/pull/9419)). Contributed by @r00ster91.
8+
* Add placeholder for rich text editor ([\#9613](https://github.com/matrix-org/matrix-react-sdk/pull/9613)).
9+
* Consolidate public room search experience ([\#9605](https://github.com/matrix-org/matrix-react-sdk/pull/9605)). Fixes vector-im/element-web#22846.
10+
* New password reset flow ([\#9581](https://github.com/matrix-org/matrix-react-sdk/pull/9581)). Fixes vector-im/element-web#23131.
11+
* Device manager - add tooltip to device details toggle ([\#9594](https://github.com/matrix-org/matrix-react-sdk/pull/9594)).
12+
* sliding sync: add lazy-loading member support ([\#9530](https://github.com/matrix-org/matrix-react-sdk/pull/9530)).
13+
* Limit formatting bar offset to top of composer ([\#9365](https://github.com/matrix-org/matrix-react-sdk/pull/9365)). Fixes vector-im/element-web#12359. Contributed by @owi92.
14+
15+
## 🐛 Bug Fixes
16+
* Fix issues around up arrow event edit shortcut ([\#9645](https://github.com/matrix-org/matrix-react-sdk/pull/9645)). Fixes vector-im/element-web#18497 and vector-im/element-web#18964.
17+
* Fix search not being cleared when clicking on a result ([\#9635](https://github.com/matrix-org/matrix-react-sdk/pull/9635)). Fixes vector-im/element-web#23845.
18+
* Fix screensharing in 1:1 calls ([\#9612](https://github.com/matrix-org/matrix-react-sdk/pull/9612)). Fixes vector-im/element-web#23808.
19+
* Fix the background color flashing when joining a call ([\#9640](https://github.com/matrix-org/matrix-react-sdk/pull/9640)).
20+
* Fix the size of the 'Private space' icon ([\#9638](https://github.com/matrix-org/matrix-react-sdk/pull/9638)).
21+
* Fix reply editing in rich text editor (https ([\#9615](https://github.com/matrix-org/matrix-react-sdk/pull/9615)).
22+
* Fix thread list jumping back down while scrolling ([\#9606](https://github.com/matrix-org/matrix-react-sdk/pull/9606)). Fixes vector-im/element-web#23727.
23+
* Fix regression with TimelinePanel props updates not taking effect ([\#9608](https://github.com/matrix-org/matrix-react-sdk/pull/9608)). Fixes vector-im/element-web#23794.
24+
* Fix form tooltip positioning ([\#9598](https://github.com/matrix-org/matrix-react-sdk/pull/9598)). Fixes vector-im/element-web#22861.
25+
* Extract Search handling from RoomView into its own Component ([\#9574](https://github.com/matrix-org/matrix-react-sdk/pull/9574)). Fixes vector-im/element-web#498.
26+
* Fix call splitbrains when switching between rooms ([\#9692](https://github.com/matrix-org/matrix-react-sdk/pull/9692)).
27+
* Fix replies to emotes not showing as inline ([\#9707](https://github.com/matrix-org/matrix-react-sdk/pull/9707)). Fixes vector-im/element-web#23903.
28+
129
Changes in [3.61.0](https://github.com/matrix-org/matrix-react-sdk/releases/tag/v3.61.0) (2022-11-22)
230
=====================================================================================================
331

cypress/e2e/crypto/crypto.spec.ts

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,17 @@ const bobJoin = function(this: CryptoTestContext) {
9191
cy.contains(".mx_TextualEvent", "Bob joined the room").should("exist");
9292
};
9393

94+
/** configure the given MatrixClient to auto-accept any invites */
95+
function autoJoin(client: MatrixClient) {
96+
cy.window({ log: false }).then(async win => {
97+
client.on(win.matrixcs.RoomMemberEvent.Membership, (event, member) => {
98+
if (member.membership === "invite" && member.userId === client.getUserId()) {
99+
client.joinRoom(member.roomId);
100+
}
101+
});
102+
});
103+
}
104+
94105
const handleVerificationRequest = (request: VerificationRequest): Chainable<EmojiMapping[]> => {
95106
return cy.wrap(new Promise<EmojiMapping[]>((resolve) => {
96107
const onShowSas = (event: ISasEvent) => {
@@ -174,4 +185,22 @@ describe("Cryptography", function() {
174185
testMessages.call(this);
175186
verify.call(this);
176187
});
188+
189+
it("should allow verification when there is no existing DM", function(this: CryptoTestContext) {
190+
cy.bootstrapCrossSigning();
191+
autoJoin(this.bob);
192+
193+
/* we need to have a room with the other user present, so we can open the verification panel */
194+
let roomId: string;
195+
cy.createRoom({ name: "TestRoom", invite: [this.bob.getUserId()] }).then(_room1Id => {
196+
roomId = _room1Id;
197+
cy.log(`Created test room ${roomId}`);
198+
cy.visit(`/#/room/${roomId}`);
199+
// wait for Bob to join the room, otherwise our attempt to open his user details may race
200+
// with his join.
201+
cy.contains(".mx_TextualEvent", "Bob joined the room").should("exist");
202+
});
203+
204+
verify.call(this);
205+
});
177206
});

cypress/e2e/login/login.spec.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ import { SynapseInstance } from "../../plugins/synapsedocker";
2121
describe("Login", () => {
2222
let synapse: SynapseInstance;
2323

24+
beforeEach(() => {
25+
cy.stubDefaultServer();
26+
});
27+
2428
afterEach(() => {
2529
cy.stopSynapse(synapse);
2630
});

0 commit comments

Comments
 (0)