Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
elm
element-web
matrix-react-sdk
Commits
2570bc81
Unverified
Commit
2570bc81
authored
1 year ago
by
Germain
Committed by
GitHub
1 year ago
Browse files
Options
Download
Plain Diff
Merge branch 'develop' into germain-gg/compoundify-avatar
parents
3f6d5b8f
e6c12791
Changes
263
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
43 additions
and
24 deletions
+43
-24
.eslintrc.js
.eslintrc.js
+4
-0
.github/workflows/backport.yml
.github/workflows/backport.yml
+1
-1
.github/workflows/cypress.yaml
.github/workflows/cypress.yaml
+1
-1
.github/workflows/i18n_check.yml
.github/workflows/i18n_check.yml
+1
-1
cypress/e2e/composer/composer.spec.ts
cypress/e2e/composer/composer.spec.ts
+1
-1
jest.config.ts
jest.config.ts
+2
-2
res/css/views/rooms/_EventTile.pcss
res/css/views/rooms/_EventTile.pcss
+11
-0
src/ContentMessages.ts
src/ContentMessages.ts
+1
-1
src/Lifecycle.ts
src/Lifecycle.ts
+1
-2
src/Login.ts
src/Login.ts
+1
-3
src/MatrixClientPeg.ts
src/MatrixClientPeg.ts
+2
-1
src/PosthogAnalytics.ts
src/PosthogAnalytics.ts
+1
-1
src/SecurityManager.ts
src/SecurityManager.ts
+1
-2
src/async-components/views/dialogs/security/ExportE2eKeysDialog.tsx
...components/views/dialogs/security/ExportE2eKeysDialog.tsx
+1
-1
src/async-components/views/dialogs/security/ImportE2eKeysDialog.tsx
...components/views/dialogs/security/ImportE2eKeysDialog.tsx
+1
-1
src/boundThreepids.ts
src/boundThreepids.ts
+1
-1
src/components/structures/InteractiveAuth.tsx
src/components/structures/InteractiveAuth.tsx
+1
-1
src/components/structures/LoggedInView.tsx
src/components/structures/LoggedInView.tsx
+8
-2
src/components/structures/RoomView.tsx
src/components/structures/RoomView.tsx
+1
-1
src/components/structures/TimelinePanel.tsx
src/components/structures/TimelinePanel.tsx
+2
-1
No files found.
.eslintrc.js
View file @
2570bc81
...
...
@@ -110,6 +110,10 @@ module.exports = {
name
:
"
matrix-js-sdk/src/@types/event
"
,
message
:
"
Please use matrix-js-sdk/src/matrix instead
"
,
},
{
name
:
"
matrix-js-sdk/src/client
"
,
message
:
"
Please use matrix-js-sdk/src/matrix instead
"
,
},
{
name
:
"
matrix-react-sdk
"
,
message
:
"
Please use matrix-react-sdk/src/index instead
"
,
...
...
This diff is collapsed.
Click to expand it.
.github/workflows/backport.yml
View file @
2570bc81
...
...
@@ -23,7 +23,7 @@ jobs:
)
)
steps
:
-
uses
:
tibdex/backport@
2e217641d82d02ba0603f46b1aeedefb258890ac
# v2
-
uses
:
tibdex/backport@
9565281eda0731b1d20c4025c43339fb0a23812e
# v2
with
:
labels_template
:
"
<%=
JSON.stringify([...labels,
'X-Release-Blocker'])
%>"
# We can't use GITHUB_TOKEN here or CI won't run on the new PR
...
...
This diff is collapsed.
Click to expand it.
.github/workflows/cypress.yaml
View file @
2570bc81
...
...
@@ -163,7 +163,7 @@ jobs:
echo "CYPRESS_RUST_CRYPTO=1" >> "$GITHUB_ENV"
-
name
:
Run Cypress tests
uses
:
cypress-io/github-action@
bcd73b7e98602824dfd8cddd890f5d7dd5c4d97
a
uses
:
cypress-io/github-action@
90dff940a41c08c7c344310eac7e57eda636326
a
with
:
working-directory
:
matrix-react-sdk
# The built-in Electron runner seems to grind to a halt trying to run the tests, so use chrome.
...
...
This diff is collapsed.
Click to expand it.
.github/workflows/i18n_check.yml
View file @
2570bc81
...
...
@@ -12,7 +12,7 @@ jobs:
-
name
:
"
Get
modified
files"
id
:
changed_files
if
:
github.event_name == 'pull_request' && github.event.pull_request.user.login != 'RiotTranslateBot'
uses
:
tj-actions/changed-files@
920e7b9ae1d45913fc81f86c956fee89c77d2e5e
# v37
uses
:
tj-actions/changed-files@
87697c0dca7dd44e37a2b79a79489332556ff1f3
# v37
with
:
files
:
|
src/i18n/strings/*
...
...
This diff is collapsed.
Click to expand it.
cypress/e2e/composer/composer.spec.ts
View file @
2570bc81
...
...
@@ -173,7 +173,7 @@ describe("Composer", () => {
cy
.
findByRole
(
"
textbox
"
).
type
(
"
this is the spoiler text
"
);
cy
.
findByRole
(
"
button
"
,
{
name
:
"
Send message
"
}).
click
();
// Check that a spoiler item has appeared in the timeline and contains the spoiler command text
cy
.
get
(
"
spa
n.mx_EventTile_spoiler
"
).
should
(
"
exist
"
);
cy
.
get
(
"
butto
n.mx_EventTile_spoiler
"
).
should
(
"
exist
"
);
cy
.
findByText
(
"
this is the spoiler text
"
).
should
(
"
exist
"
);
});
});
...
...
This diff is collapsed.
Click to expand it.
jest.config.ts
View file @
2570bc81
...
...
@@ -21,9 +21,9 @@ import type { Config } from "jest";
const
config
:
Config
=
{
testEnvironment
:
"
jsdom
"
,
testMatch
:
[
"
<rootDir>/test/**/*-test.[jt]s?(x)
"
],
globalSetup
:
"
<rootDir>/test/globalSetup.
j
s
"
,
globalSetup
:
"
<rootDir>/test/globalSetup.
t
s
"
,
setupFiles
:
[
"
jest-canvas-mock
"
],
setupFilesAfterEnv
:
[
"
<rootDir>/test/setupTests.
j
s
"
],
setupFilesAfterEnv
:
[
"
<rootDir>/test/setupTests.
t
s
"
],
moduleNameMapper
:
{
"
\\
.(gif|png|ttf|woff2)$
"
:
"
<rootDir>/__mocks__/imageMock.js
"
,
"
\\
.svg$
"
:
"
<rootDir>/__mocks__/svg.js
"
,
...
...
This diff is collapsed.
Click to expand it.
res/css/views/rooms/_EventTile.pcss
View file @
2570bc81
...
...
@@ -809,6 +809,16 @@ $left-gutter: 64px;
.mx_EventTile_spoiler {
cursor: pointer;
// clear button styles
appearance: none;
background: none;
border: none;
padding: 0;
margin: 0;
font-size: inherit;
font-family: inherit;
line-height: inherit;
.mx_EventTile_spoiler_reason {
color: $event-timestamp-color;
font-size: $font-11px;
...
...
@@ -821,6 +831,7 @@ $left-gutter: 64px;
&.visible > .mx_EventTile_spoiler_content {
filter: none;
user-select: auto;
}
}
...
...
This diff is collapsed.
Click to expand it.
src/ContentMessages.ts
View file @
2570bc81
...
...
@@ -16,8 +16,8 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
import
{
MatrixClient
}
from
"
matrix-js-sdk/src/client
"
;
import
{
MatrixClient
,
MsgType
,
IImageInfo
,
HTTPError
,
...
...
This diff is collapsed.
Click to expand it.
src/Lifecycle.ts
View file @
2570bc81
...
...
@@ -18,9 +18,8 @@ limitations under the License.
*/
import
{
ReactNode
}
from
"
react
"
;
import
{
createClient
}
from
"
matrix-js-sdk/src/matrix
"
;
import
{
createClient
,
MatrixClient
}
from
"
matrix-js-sdk/src/matrix
"
;
import
{
InvalidStoreError
}
from
"
matrix-js-sdk/src/errors
"
;
import
{
MatrixClient
}
from
"
matrix-js-sdk/src/client
"
;
import
{
decryptAES
,
encryptAES
,
IEncryptedPayload
}
from
"
matrix-js-sdk/src/crypto/aes
"
;
import
{
QueryDict
}
from
"
matrix-js-sdk/src/utils
"
;
import
{
logger
}
from
"
matrix-js-sdk/src/logger
"
;
...
...
This diff is collapsed.
Click to expand it.
src/Login.ts
View file @
2570bc81
...
...
@@ -15,9 +15,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
// @ts-ignore - XXX: tsc doesn't like this: our js-sdk imports are complex so this isn't surprising
import
{
createClient
}
from
"
matrix-js-sdk/src/matrix
"
;
import
{
MatrixClient
}
from
"
matrix-js-sdk/src/client
"
;
import
{
createClient
,
MatrixClient
}
from
"
matrix-js-sdk/src/matrix
"
;
import
{
logger
}
from
"
matrix-js-sdk/src/logger
"
;
import
{
DELEGATED_OIDC_COMPATIBILITY
,
ILoginFlow
,
LoginFlow
,
LoginRequest
}
from
"
matrix-js-sdk/src/@types/auth
"
;
...
...
This diff is collapsed.
Click to expand it.
src/MatrixClientPeg.ts
View file @
2570bc81
...
...
@@ -24,8 +24,9 @@ import {
RoomNameType
,
EventTimeline
,
EventTimelineSet
,
IStartClientOpts
,
MatrixClient
,
}
from
"
matrix-js-sdk/src/matrix
"
;
import
{
IStartClientOpts
,
MatrixClient
}
from
"
matrix-js-sdk/src/client
"
;
import
{
MemoryStore
}
from
"
matrix-js-sdk/src/store/memory
"
;
import
*
as
utils
from
"
matrix-js-sdk/src/utils
"
;
import
{
verificationMethods
}
from
"
matrix-js-sdk/src/crypto
"
;
...
...
This diff is collapsed.
Click to expand it.
src/PosthogAnalytics.ts
View file @
2570bc81
...
...
@@ -15,7 +15,7 @@ limitations under the License.
*/
import
posthog
,
{
CaptureOptions
,
PostHog
,
Properties
}
from
"
posthog-js
"
;
import
{
MatrixClient
}
from
"
matrix-js-sdk/src/
client
"
;
import
{
MatrixClient
}
from
"
matrix-js-sdk/src/
matrix
"
;
import
{
logger
}
from
"
matrix-js-sdk/src/logger
"
;
import
{
UserProperties
}
from
"
@matrix-org/analytics-events/types/typescript/UserProperties
"
;
import
{
Signup
}
from
"
@matrix-org/analytics-events/types/typescript/Signup
"
;
...
...
This diff is collapsed.
Click to expand it.
src/SecurityManager.ts
View file @
2570bc81
...
...
@@ -14,9 +14,8 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
import
{
DeviceVerificationStatus
,
ICryptoCallbacks
}
from
"
matrix-js-sdk/src/matrix
"
;
import
{
DeviceVerificationStatus
,
ICryptoCallbacks
,
MatrixClient
}
from
"
matrix-js-sdk/src/matrix
"
;
import
{
ISecretStorageKeyInfo
}
from
"
matrix-js-sdk/src/crypto/api
"
;
import
{
MatrixClient
}
from
"
matrix-js-sdk/src/client
"
;
import
{
deriveKey
}
from
"
matrix-js-sdk/src/crypto/key_passphrase
"
;
import
{
decodeRecoveryKey
}
from
"
matrix-js-sdk/src/crypto/recoverykey
"
;
import
{
encodeBase64
}
from
"
matrix-js-sdk/src/crypto/olmlib
"
;
...
...
This diff is collapsed.
Click to expand it.
src/async-components/views/dialogs/security/ExportE2eKeysDialog.tsx
View file @
2570bc81
...
...
@@ -17,7 +17,7 @@ limitations under the License.
import
FileSaver
from
"
file-saver
"
;
import
React
,
{
ChangeEvent
}
from
"
react
"
;
import
{
MatrixClient
}
from
"
matrix-js-sdk/src/
client
"
;
import
{
MatrixClient
}
from
"
matrix-js-sdk/src/
matrix
"
;
import
{
logger
}
from
"
matrix-js-sdk/src/logger
"
;
import
{
_t
,
_td
}
from
"
../../../../languageHandler
"
;
...
...
This diff is collapsed.
Click to expand it.
src/async-components/views/dialogs/security/ImportE2eKeysDialog.tsx
View file @
2570bc81
...
...
@@ -16,7 +16,7 @@ limitations under the License.
*/
import
React
,
{
createRef
}
from
"
react
"
;
import
{
MatrixClient
}
from
"
matrix-js-sdk/src/
client
"
;
import
{
MatrixClient
}
from
"
matrix-js-sdk/src/
matrix
"
;
import
{
logger
}
from
"
matrix-js-sdk/src/logger
"
;
import
*
as
MegolmExportEncryption
from
"
../../../../utils/MegolmExportEncryption
"
;
...
...
This diff is collapsed.
Click to expand it.
src/boundThreepids.ts
View file @
2570bc81
...
...
@@ -15,7 +15,7 @@ limitations under the License.
*/
import
{
IThreepid
,
ThreepidMedium
}
from
"
matrix-js-sdk/src/@types/threepids
"
;
import
{
MatrixClient
}
from
"
matrix-js-sdk/src/
client
"
;
import
{
MatrixClient
}
from
"
matrix-js-sdk/src/
matrix
"
;
import
{
MatrixError
}
from
"
matrix-js-sdk/src/http-api
"
;
import
IdentityAuthClient
from
"
./IdentityAuthClient
"
;
...
...
This diff is collapsed.
Click to expand it.
src/components/structures/InteractiveAuth.tsx
View file @
2570bc81
...
...
@@ -23,7 +23,7 @@ import {
InteractiveAuth
,
IStageStatus
,
}
from
"
matrix-js-sdk/src/interactive-auth
"
;
import
{
MatrixClient
}
from
"
matrix-js-sdk/src/
client
"
;
import
{
MatrixClient
}
from
"
matrix-js-sdk/src/
matrix
"
;
import
{
logger
}
from
"
matrix-js-sdk/src/logger
"
;
import
getEntryComponentForLoginType
,
{
IStageComponent
}
from
"
../views/auth/InteractiveAuthEntryComponents
"
;
...
...
This diff is collapsed.
Click to expand it.
src/components/structures/LoggedInView.tsx
View file @
2570bc81
...
...
@@ -15,8 +15,14 @@ limitations under the License.
*/
import
React
,
{
ClipboardEvent
}
from
"
react
"
;
import
{
ClientEvent
,
MatrixClient
}
from
"
matrix-js-sdk/src/client
"
;
import
{
MatrixEvent
,
RoomStateEvent
,
MatrixError
,
IUsageLimit
}
from
"
matrix-js-sdk/src/matrix
"
;
import
{
ClientEvent
,
MatrixClient
,
MatrixEvent
,
RoomStateEvent
,
MatrixError
,
IUsageLimit
,
}
from
"
matrix-js-sdk/src/matrix
"
;
import
{
MatrixCall
}
from
"
matrix-js-sdk/src/webrtc/call
"
;
import
classNames
from
"
classnames
"
;
import
{
ISyncStateData
,
SyncState
}
from
"
matrix-js-sdk/src/sync
"
;
...
...
This diff is collapsed.
Click to expand it.
src/components/structures/RoomView.tsx
View file @
2570bc81
...
...
@@ -33,12 +33,12 @@ import {
EventType
,
HistoryVisibility
,
JoinRule
,
ClientEvent
,
}
from
"
matrix-js-sdk/src/matrix
"
;
import
{
logger
}
from
"
matrix-js-sdk/src/logger
"
;
import
{
CallState
,
MatrixCall
}
from
"
matrix-js-sdk/src/webrtc/call
"
;
import
{
throttle
}
from
"
lodash
"
;
import
{
MatrixError
}
from
"
matrix-js-sdk/src/http-api
"
;
import
{
ClientEvent
}
from
"
matrix-js-sdk/src/client
"
;
import
{
CryptoEvent
}
from
"
matrix-js-sdk/src/crypto
"
;
import
{
THREAD_RELATION_TYPE
}
from
"
matrix-js-sdk/src/models/thread
"
;
import
{
ISearchResults
}
from
"
matrix-js-sdk/src/@types/search
"
;
...
...
This diff is collapsed.
Click to expand it.
src/components/structures/TimelinePanel.tsx
View file @
2570bc81
...
...
@@ -29,12 +29,13 @@ import {
EventTimeline
,
EventType
,
RelationType
,
ClientEvent
,
MatrixClient
,
}
from
"
matrix-js-sdk/src/matrix
"
;
import
{
TimelineWindow
}
from
"
matrix-js-sdk/src/timeline-window
"
;
import
{
SyncState
}
from
"
matrix-js-sdk/src/sync
"
;
import
{
debounce
,
findLastIndex
,
throttle
}
from
"
lodash
"
;
import
{
logger
}
from
"
matrix-js-sdk/src/logger
"
;
import
{
ClientEvent
,
MatrixClient
}
from
"
matrix-js-sdk/src/client
"
;
import
{
Thread
,
ThreadEvent
}
from
"
matrix-js-sdk/src/models/thread
"
;
import
{
ReceiptType
}
from
"
matrix-js-sdk/src/@types/read_receipts
"
;
import
{
MatrixError
}
from
"
matrix-js-sdk/src/http-api
"
;
...
...
This diff is collapsed.
Click to expand it.
Prev
1
2
3
4
5
…
14
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment