Skip to content

chore: merge dev to acc #13964

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 55 commits into from
Oct 26, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
e28fad1
chore(deps): Bump crowdin/github-action from 1.4.14 to 1.4.15 (#13886)
dependabot[bot] Oct 17, 2022
375b5b9
chore(deps): Bump amannn/action-semantic-pull-request (#13885)
dependabot[bot] Oct 17, 2022
313f26c
chore: Upgrade @wireapp/core (#13887)
atomrc Oct 18, 2022
c91470d
fix: update core to get rid of the missing messages message bug (#13892)
aweiss-dev Oct 18, 2022
c4043b7
chore: Cleanup unused dependencies (#13893)
atomrc Oct 18, 2022
8006f9e
chore: replace discontinued postcss-cssnext with postcss-preset-env (…
comawill Oct 19, 2022
da97b27
fix: use hasOwnProperty instead of direct object access (#13896)
comawill Oct 19, 2022
00bf48f
feat: Get Sender client ID from CoreCrypto to pass to AVS (FS-1045) (…
thisisamir98 Oct 19, 2022
599e1bc
feat: add ENABLE_DEV_BACKEND_API env variable [FS-1051] (#13912)
PatrykBuniX Oct 20, 2022
84709a3
refactor: Move cryptobox hooks into @wireapp/core (#13905)
atomrc Oct 20, 2022
98a1140
feat: activate mls for client via mls feature config [FS-1088] (#13898)
PatrykBuniX Oct 20, 2022
a367fd0
runfix: fix for firefox ephemeral message progress icon (#13919)
PatrykBuniX Oct 21, 2022
03a2969
chore(deps-dev): Bump @babel/plugin-proposal-decorators (#13930)
dependabot[bot] Oct 23, 2022
b07e724
chore(deps): Bump @wireapp/core from 34.0.2 to 34.1.1 (#13926)
dependabot[bot] Oct 23, 2022
50d7d0d
chore(deps): Bump @wireapp/store-engine-dexie from 1.7.6 to 1.7.11 (#…
dependabot[bot] Oct 23, 2022
4f9bd4e
chore(deps-dev): Bump jest-environment-jsdom from 29.1.2 to 29.2.1 (#…
dependabot[bot] Oct 23, 2022
b86deaa
chore(deps): Bump react-intl from 6.2.0 to 6.2.1 (#13927)
dependabot[bot] Oct 23, 2022
50626d2
chore(deps): Bump @wireapp/commons from 4.4.6 to 4.4.10 in /server (#…
dependabot[bot] Oct 23, 2022
1362637
chore(deps-dev): Bump eslint-plugin-jest from 27.1.2 to 27.1.3 (#13936)
dependabot[bot] Oct 23, 2022
73f32f9
chore(deps-dev): Bump @wireapp/prettier-config from 0.4.6 to 0.4.7 (#…
dependabot[bot] Oct 23, 2022
8914b3d
chore(deps-dev): Bump @babel/core from 7.19.3 to 7.19.6 (#13939)
dependabot[bot] Oct 23, 2022
06f5c7a
chore(deps): Bump @wireapp/webapp-events from 0.14.6 to 0.14.9 (#13937)
dependabot[bot] Oct 23, 2022
9287a5c
chore(deps-dev): Bump @types/node from 18.11.0 to 18.11.3 (#13940)
dependabot[bot] Oct 23, 2022
698b9fd
chore(deps-dev): Bump concurrently from 7.4.0 to 7.5.0 (#13935)
dependabot[bot] Oct 23, 2022
f5a0d72
chore(deps-dev): Bump @typescript-eslint/parser from 5.40.0 to 5.40.1…
dependabot[bot] Oct 23, 2022
2d4a4e1
chore(deps): Bump zustand from 4.1.2 to 4.1.3 (#13946)
dependabot[bot] Oct 23, 2022
8e26114
chore(deps-dev): Bump eslint from 8.25.0 to 8.26.0 (#13938)
dependabot[bot] Oct 23, 2022
e033c9e
chore(deps-dev): Bump caniuse-lite from 1.0.30001420 to 1.0.30001423 …
dependabot[bot] Oct 23, 2022
e3fde40
chore(deps-dev): Bump jest and @types/jest (#13929)
dependabot[bot] Oct 23, 2022
cd65c01
chore(deps-dev): Bump @wireapp/copy-config from 1.3.6 to 1.3.10 (#13941)
dependabot[bot] Oct 23, 2022
ff8d9ad
chore(deps-dev): Bump @typescript-eslint/eslint-plugin (#13948)
dependabot[bot] Oct 23, 2022
d3ad819
chore(deps): Bump @wireapp/react-ui-kit from 8.17.0 to 8.17.5 (#13949)
dependabot[bot] Oct 23, 2022
a52a609
chore(deps): Bump @wireapp/store-engine-sqleet from 1.8.6 to 1.8.9 (#…
dependabot[bot] Oct 23, 2022
bcb8ef1
chore(deps-dev): Bump eslint-plugin-jsdoc from 39.3.6 to 39.3.21 (#13…
dependabot[bot] Oct 23, 2022
6722fbf
chore(deps-dev): Bump jest-jasmine2 from 29.2.0 to 29.2.1 (#13942)
dependabot[bot] Oct 23, 2022
880b9f8
chore(deps-dev): Bump @wireapp/eslint-config from 1.12.11 to 1.12.12 …
dependabot[bot] Oct 23, 2022
b7dbf0b
chore(deps-dev): Bump @formatjs/cli from 5.1.2 to 5.1.3 (#13945)
dependabot[bot] Oct 23, 2022
0271d69
runfix: show expand option for collections over limit [FS-1025] (#13921)
PatrykBuniX Oct 24, 2022
4d573a8
chore: Upgrade @wireapp/core (#13951)
atomrc Oct 24, 2022
8085493
chore: bump used versions of minimatch (#13952)
comawill Oct 24, 2022
2bfdbf9
chore(deps): Bump crowdin/github-action from 1.4.15 to 1.4.16 (#13925)
dependabot[bot] Oct 24, 2022
7738464
chore(deps): Bump wire-web-config-default-staging in /app-config (#13…
dependabot[bot] Oct 24, 2022
e1d8d77
refactor: Use @wireapp/core for generating fingerprints [FS-1101] (#1…
atomrc Oct 24, 2022
22aef7f
Revert "chore(deps): Bump cakeinpanic/jira-description-action from 0.…
comawill Oct 24, 2022
b1fe0e2
chore(deps): Bump wire-web-config-default-master in /app-config (#13916)
dependabot[bot] Oct 24, 2022
21c5f59
chore: Add docker image generation job (#13954)
atomrc Oct 24, 2022
5407cb9
chore: Fix docker image creation job
atomrc Oct 24, 2022
c07d331
chore: More docker image build fix
atomrc Oct 24, 2022
5fe6f66
runfix: audio file previews don't match on sender and receiver side (…
PatrykBuniX Oct 24, 2022
8700bb5
runfix: Pass messageId when creating message edit (#13961)
atomrc Oct 24, 2022
425c031
chore: upgrade @wireapp/core (#13962)
atomrc Oct 24, 2022
5045b43
chore: Simplify babel config (#13963)
atomrc Oct 24, 2022
89bbcb0
chore: merge dev to acc
przemvs Oct 24, 2022
6d1c91d
build fixes
przemvs Oct 24, 2022
35518f8
Fix collection test
przemvs Oct 24, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .env.localhost
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ CSP_EXTRA_IMG_SRC="https://*.zinfra.io, https://*.wire.com, https://*.wire.link"
CSP_EXTRA_SCRIPT_SRC="http://localhost:32123, https://*.zinfra.io, https://*.wire.com, https://*.wire.link, https://api.raygun.io"
ENFORCE_HTTPS="false"
FEATURE_ENABLE_DEBUG="true"
ENABLE_DEV_BACKEND_API="true"

#FEATURE_DEFAULT_LOGIN_TEMPORARY_CLIENT="false"
#FEATURE_PERSIST_TEMPORARY_CLIENTS="false"
Expand Down
46 changes: 46 additions & 0 deletions .github/workflows/create_docker_image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Create Docker image

on:
workflow_dispatch:
inputs:
tag:
description: 'tagname for the Docker image'
required: true
type: string

concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true

jobs:
test_build_deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Use latest Node.js v16
uses: actions/setup-node@v3
with:
node-version: 16.x

- name: Yarn cache
uses: c-hive/[email protected]

- name: Install JS dependencies
run: yarn --immutable

- name: Test
run: yarn test --coverage --coverage-reporters=lcov --detectOpenHandles=false

- name: Build
run: yarn build:prod

- name: Push Docker image
env:
DOCKER_PASSWORD: ${{secrets.WEBTEAM_QUAY_PASSWORD}}
DOCKER_USERNAME: ${{secrets.WEBTEAM_QUAY_USERNAME}}
run: yarn docker '' "${{inputs.tag}}"
3 changes: 2 additions & 1 deletion .github/workflows/jira-lint-and-link.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ jobs:
add-jira-description:
runs-on: ubuntu-latest
steps:
- uses: cakeinpanic/jira-description-action@v1.2
- uses: cakeinpanic/jira-description-action@v0.3.2
name: jira-description-action
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
jira-token: ${{ secrets.JIRA_TOKEN }}
jira-base-url: https://wearezeta.atlassian.net
skip-branches: '^(production-release|main|master|release\/v\d+)$' #optional
fail-when-jira-issue-not-found: false
2 changes: 1 addition & 1 deletion .github/workflows/sync_translations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
run: yarn translate:merge

- name: Download translations
uses: crowdin/[email protected].15
uses: crowdin/[email protected].16
env:
GITHUB_TOKEN: ${{secrets.OTTO_THE_BOT_GH_TOKEN}}
CROWDIN_PROJECT_ID: 342359
Expand Down
4 changes: 2 additions & 2 deletions app-config/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"dependencies": {
"wire-web-config-default-master": "https://github.com/wireapp/wire-web-config-wire#v0.31.5-0",
"wire-web-config-default-staging": "https://github.com/wireapp/wire-web-config-default#v0.31.4"
"wire-web-config-default-master": "https://github.com/wireapp/wire-web-config-wire#v0.31.9-0",
"wire-web-config-default-staging": "https://github.com/wireapp/wire-web-config-default#v0.31.8"
}
}
16 changes: 2 additions & 14 deletions babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,27 +30,15 @@ const presetEnvConfig = {
module.exports = {
env: {
test: {
plugins: [
'@babel/plugin-proposal-class-properties',
'@babel/plugin-proposal-nullish-coalescing-operator',
'@babel/plugin-proposal-optional-chaining',
'@emotion',
],
plugins: ['@emotion'],
presets: [
['@babel/preset-react', {importSource: '@emotion/react', runtime: 'automatic'}],
'@babel/preset-typescript',
['@babel/preset-env', {...presetEnvConfig, modules: 'commonjs'}],
],
},
},
plugins: [
['@babel/plugin-proposal-decorators', {legacy: true}],
'@babel/plugin-proposal-class-properties',
'@babel/plugin-proposal-nullish-coalescing-operator',
'@babel/plugin-proposal-optional-chaining',
'@babel/plugin-syntax-dynamic-import',
'@emotion',
],
plugins: [['@babel/plugin-proposal-decorators', {legacy: true}], '@emotion'],
presets: [
['@babel/preset-react', {importSource: '@emotion/react', runtime: 'automatic'}],
'@babel/preset-typescript',
Expand Down
54 changes: 25 additions & 29 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
"dependencies": {
"@emotion/react": "11.10.4",
"@wireapp/avs": "8.2.16",
"@wireapp/core": "32.1.1",
"@wireapp/react-ui-kit": "8.17.0",
"@wireapp/store-engine-dexie": "1.7.6",
"@wireapp/store-engine-sqleet": "1.8.6",
"@wireapp/webapp-events": "0.14.6",
"@wireapp/core": "34.1.4",
"@wireapp/react-ui-kit": "8.17.5",
"@wireapp/store-engine-dexie": "1.7.11",
"@wireapp/store-engine-sqleet": "1.8.9",
"@wireapp/webapp-events": "0.14.9",
"amplify": "https://github.com/wireapp/amplify#head=master",
"classnames": "2.3.2",
"copy-webpack-plugin": "11.0.0",
Expand All @@ -30,7 +30,7 @@
"platform": "1.3.6",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-intl": "6.2.0",
"react-intl": "6.2.1",
"react-redux": "8.0.4",
"react-router": "6.4.2",
"react-router-dom": "6.4.2",
Expand All @@ -46,21 +46,17 @@
"underscore": "1.13.6",
"uuidjs": "4.2.12",
"webrtc-adapter": "6.4.8",
"zustand": "4.1.2"
"zustand": "4.1.3"
},
"devDependencies": {
"@babel/core": "7.19.3",
"@babel/core": "7.19.6",
"@babel/eslint-parser": "7.19.1",
"@babel/plugin-proposal-class-properties": "7.18.6",
"@babel/plugin-proposal-decorators": "7.19.3",
"@babel/plugin-proposal-nullish-coalescing-operator": "7.18.6",
"@babel/plugin-proposal-optional-chaining": "7.18.9",
"@babel/plugin-syntax-dynamic-import": "7.8.3",
"@babel/plugin-proposal-decorators": "7.19.6",
"@babel/preset-env": "7.19.4",
"@babel/preset-react": "7.18.6",
"@babel/preset-typescript": "7.18.6",
"@faker-js/faker": "7.6.0",
"@formatjs/cli": "5.1.2",
"@formatjs/cli": "5.1.3",
"@koush/wrtc": "0.5.3",
"@testing-library/react": "13.4.0",
"@types/adm-zip": "0.5.0",
Expand All @@ -70,14 +66,14 @@
"@types/fs-extra": "9.0.13",
"@types/generate-changelog": "1.8.1",
"@types/highlight.js": "10.1.0",
"@types/jest": "29.1.2",
"@types/jest": "29.2.0",
"@types/js-cookie": "3.0.2",
"@types/jsdom": "20.0.0",
"@types/keyboardjs": "2.5.0",
"@types/libsodium-wrappers-sumo": "0.7.5",
"@types/linkify-it": "3.0.2",
"@types/markdown-it": "12.2.3",
"@types/node": "^18.11.0",
"@types/node": "^18.11.3",
"@types/open-graph": "0.2.2",
"@types/platform": "1.3.4",
"@types/react": "18.0.21",
Expand All @@ -91,29 +87,29 @@
"@types/uint32": "0.2.0",
"@types/underscore": "1.11.4",
"@types/webpack-env": "1.18.0",
"@typescript-eslint/eslint-plugin": "5.40.0",
"@typescript-eslint/parser": "5.40.0",
"@wireapp/copy-config": "1.3.6",
"@wireapp/eslint-config": "1.12.11",
"@wireapp/prettier-config": "0.4.6",
"@typescript-eslint/eslint-plugin": "5.40.1",
"@typescript-eslint/parser": "5.40.1",
"@wireapp/copy-config": "1.3.10",
"@wireapp/eslint-config": "1.12.12",
"@wireapp/prettier-config": "0.4.7",
"adm-zip": "0.5.9",
"autoprefixer": "9.8.8",
"babel-loader": "8.2.5",
"caniuse-lite": "^1.0.30001420",
"concurrently": "7.4.0",
"caniuse-lite": "^1.0.30001423",
"concurrently": "7.5.0",
"cross-env": "7.0.3",
"cspell": "6.12.0",
"cssnano": "4.1.11",
"dexie": "^3.2.2",
"dotenv": "16.0.3",
"dpdm": "3.10.0",
"eslint": "8.25.0",
"eslint": "8.26.0",
"eslint-config-prettier": "8.5.0",
"eslint-import-resolver-alias": "1.1.2",
"eslint-plugin-babel": "5.3.1",
"eslint-plugin-import": "2.26.0",
"eslint-plugin-jest": "27.1.2",
"eslint-plugin-jsdoc": "39.3.6",
"eslint-plugin-jest": "27.1.3",
"eslint-plugin-jsdoc": "39.3.21",
"eslint-plugin-jsx-a11y": "6.6.1",
"eslint-plugin-no-unsanitized": "4.0.1",
"eslint-plugin-prettier": "4.2.1",
Expand All @@ -138,10 +134,10 @@
"husky": "7.0.4",
"i18next-scanner": "4.1.0",
"intersection-observer": "0.12.2",
"jest": "29.2.0",
"jest": "29.2.1",
"jest-canvas-mock": "2.4.0",
"jest-environment-jsdom": "29.1.2",
"jest-jasmine2": "29.2.0",
"jest-environment-jsdom": "29.2.1",
"jest-jasmine2": "29.2.1",
"jsdom-worker": "0.3.0",
"less": "3.13.1",
"lint-staged": "13.0.3",
Expand Down
1 change: 1 addition & 0 deletions server/ServerConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export interface ServerConfig {
BRAND_NAME: string;
CHROME_ORIGIN_TRIAL_TOKEN: string;
COUNTLY_API_KEY: string;
ENABLE_DEV_BACKEND_API: boolean;
ENVIRONMENT: string;
FEATURE: {
ALLOWED_FILE_UPLOAD_EXTENSIONS: string[];
Expand Down
1 change: 1 addition & 0 deletions server/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ const config: ServerConfig = {
BRAND_NAME: process.env.BRAND_NAME,
CHROME_ORIGIN_TRIAL_TOKEN: process.env.CHROME_ORIGIN_TRIAL_TOKEN,
COUNTLY_API_KEY: process.env.COUNTLY_API_KEY,
ENABLE_DEV_BACKEND_API: process.env.ENABLE_DEV_BACKEND_API == 'true',
ENVIRONMENT: nodeEnvironment,
FEATURE: {
ALLOWED_FILE_UPLOAD_EXTENSIONS: (process.env.FEATURE_ALLOWED_FILE_UPLOAD_EXTENSIONS || '*')
Expand Down
2 changes: 1 addition & 1 deletion server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"main": "dist/index.js",
"license": "GPL-3.0",
"dependencies": {
"@wireapp/commons": "4.4.6",
"@wireapp/commons": "4.4.10",
"dotenv": "16.0.3",
"dotenv-extended": "2.9.0",
"express": "4.18.2",
Expand Down
29 changes: 9 additions & 20 deletions server/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1332,15 +1332,15 @@ __metadata:
languageName: node
linkType: hard

"@wireapp/commons@npm:4.4.6":
version: 4.4.6
resolution: "@wireapp/commons@npm:4.4.6"
"@wireapp/commons@npm:4.4.10":
version: 4.4.10
resolution: "@wireapp/commons@npm:4.4.10"
dependencies:
ansi-regex: 5.0.1
fs-extra: 10.0.0
fs-extra: 10.1.0
logdown: 3.3.1
platform: 1.3.6
checksum: 76dcebc6ba4a514c15ab27c2c048edb1043a1f1ab1652a2b1b059f8d9bd227f351d44c345445d38c37333c45751e4432cd3ab53697b3d0cab761025c834d8a55
checksum: c026b91caffbf8c2abf929abb4e62c33684a1c3bbcde7d6f6164d60a80ce7507969921965fc477145c127eff1b1e3f4d7072f9821c08b8d6cecd9a474894f169
languageName: node
linkType: hard

Expand Down Expand Up @@ -2952,17 +2952,6 @@ __metadata:
languageName: node
linkType: hard

"fs-extra@npm:10.0.0":
version: 10.0.0
resolution: "fs-extra@npm:10.0.0"
dependencies:
graceful-fs: ^4.2.0
jsonfile: ^6.0.1
universalify: ^2.0.0
checksum: 5285a3d8f34b917cf2b66af8c231a40c1623626e9d701a20051d3337be16c6d7cac94441c8b3732d47a92a2a027886ca93c69b6a4ae6aee3c89650d2a8880c0a
languageName: node
linkType: hard

"fs-extra@npm:10.1.0":
version: 10.1.0
resolution: "fs-extra@npm:10.1.0"
Expand Down Expand Up @@ -4623,11 +4612,11 @@ __metadata:
linkType: hard

"minimatch@npm:^3.0.4":
version: 3.0.4
resolution: "minimatch@npm:3.0.4"
version: 3.1.2
resolution: "minimatch@npm:3.1.2"
dependencies:
brace-expansion: ^1.1.7
checksum: 66ac295f8a7b59788000ea3749938b0970344c841750abd96694f80269b926ebcafad3deeb3f1da2522978b119e6ae3a5869b63b13a7859a456b3408bd18a078
checksum: c154e566406683e7bcb746e000b84d74465b3a832c45d59912b9b55cd50dee66e5c4b1e5566dba26154040e51672f9aa450a9aef0c97cfc7336b78b7afb9540a
languageName: node
linkType: hard

Expand Down Expand Up @@ -6717,7 +6706,7 @@ __metadata:
"@types/geolite2": 2.0.0
"@types/hbs": 4.0.1
"@types/node": 12.20.55
"@wireapp/commons": 4.4.6
"@wireapp/commons": 4.4.10
dotenv: 16.0.3
dotenv-extended: 2.9.0
express: 4.18.2
Expand Down
1 change: 1 addition & 0 deletions src/script/Config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export class Configuration {
readonly BACKEND_WS = env.BACKEND_WS || 'wss://prod-nginz-ssl.wire.com';
readonly BRAND_NAME = env.BRAND_NAME || 'Wire';
readonly COUNTLY_API_KEY = env.COUNTLY_API_KEY;
readonly ENABLE_DEV_BACKEND_API = env.ENABLE_DEV_BACKEND_API;
readonly ENVIRONMENT = env.ENVIRONMENT || 'production';
readonly FEATURE = {
...env.FEATURE,
Expand Down
4 changes: 2 additions & 2 deletions src/script/auth/module/action/AuthAction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ export class AuthAction {
dispatch(AuthActionCreator.startLogin());
try {
// we first init the core without initializing the client for now (this will be done later on)
await core.init(clientType, undefined, false);
await core.init(clientType, {initClient: false});
await this.persistAuthData(clientType, core, dispatch, localStorageAction);
await dispatch(selfAction.fetchSelf());
await dispatch(cookieAction.setCookie(COOKIE_NAME_APP_OPENED, {appInstanceId: getConfig().APP_INSTANCE_ID}));
Expand Down Expand Up @@ -363,7 +363,7 @@ export class AuthAction {
}
const clientType = persist ? ClientType.PERMANENT : ClientType.TEMPORARY;

await core.init(clientType, undefined, false);
await core.init(clientType, {initClient: false});
await this.persistAuthData(clientType, core, dispatch, localStorageAction);

if (options.shouldValidateLocalClient) {
Expand Down
8 changes: 7 additions & 1 deletion src/script/calling/CallingRepository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -572,6 +572,7 @@ export class CallingRepository {
qualified_from,
sender: clientId,
time = new Date().toISOString(),
senderClientId: senderFullyQualifiedClientId = '',
} = event;
const isFederated = this.core.backendFeatures.isFederated && qualified_conversation && qualified_from;
const userId = isFederated ? qualified_from : {domain: '', id: from};
Expand Down Expand Up @@ -619,6 +620,11 @@ export class CallingRepository {
}
}

let senderClientId = '';
if (senderFullyQualifiedClientId) {
senderClientId = this.parseQualifiedId(senderFullyQualifiedClientId).id.split(':')[1];
}

const res = this.wCall?.recvMsg(
this.wUser,
contentStr,
Expand All @@ -627,7 +633,7 @@ export class CallingRepository {
toSecond(new Date(time).getTime()),
this.serializeQualifiedId(conversationId),
this.serializeQualifiedId(userId),
conversationEntity?.isUsingMLSProtocol ? content.src_clientid : clientId,
conversationEntity?.isUsingMLSProtocol ? senderClientId : clientId,
);

if (res !== 0) {
Expand Down
5 changes: 4 additions & 1 deletion src/script/components/userDevices/SelfFingerprint.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@ const SelfFingerprint: React.FC<SelfFingerprintProps> = ({
noPadding,
clientState = container.resolve(ClientState),
}) => {
const fingerprintLocal = useMemo<string>(() => cryptographyRepository.getLocalFingerprint(), []);
const fingerprintLocal = useMemo<string>(
() => cryptographyRepository.getLocalFingerprint(),
[cryptographyRepository],
);
const {currentClient} = useKoSubscribableChildren(clientState, ['currentClient']);

return (
Expand Down
Loading