Skip to content
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

fix(chat-features): Add messageId and change id to participantId #2548

Merged
merged 5 commits into from
Aug 6, 2024

Conversation

he-patrick
Copy link
Contributor

@he-patrick he-patrick commented Jul 29, 2024

  • messageId needs to be added to be able to attach reactions to specific messages
  • participantId indicates that it is the participant's id rather than the message's id

@jitsi-jenkins
Copy link

Hi, thanks for your contribution!
If you haven't already done so, could you please make sure you sign our CLA (https://jitsi.org/icla for individuals and https://jitsi.org/ccla for corporations)? We would unfortunately be unable to merge your patch unless we have that piece :(.

@he-patrick he-patrick marked this pull request as ready for review July 29, 2024 05:55
Copy link
Member

@saghul saghul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@damencho Can you PTAL too? Context: GSoC project, reactions, etc hey need the original message ID.

// we will fire explicitly that this is a guest(isGuest:true) to the conference
// informing that this is probably a message from a guest to the conference (visitor)
// a message with explicit name set
this.eventEmitter.emit(XMPPEvents.MESSAGE_RECEIVED,
from, txt, this.myroomjid, stamp, nick, Boolean(nick));
from, txt, this.myroomjid, stamp, nick, Boolean(nick), messageId);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add it above too, for private messages?

@damencho
Copy link
Member

@damencho Can you PTAL too? Context: GSoC project, reactions, etc hey need the original message ID.

According to RFC:

For <message/> and <presence/> stanzas, it is RECOMMENDED for the
   originating entity to include an 'id' attribute; for <iq/> stanzas,
   it is REQUIRED.

it is possible that there is no id, is that a problem?

@saghul
Copy link
Member

saghul commented Jul 30, 2024

Ugh, good point! How about we generate an uuid v4 in that case?

@he-patrick
Copy link
Contributor Author

I added the uuid v4 generation on JM.

@saghul
Copy link
Member

saghul commented Jul 30, 2024

I added the uuid v4 generation on JM.

Add it here please, so the applications don't need to worry about that and can assume it's there.

@saghul
Copy link
Member

saghul commented Jul 31, 2024

Code looks good but you need to fix the import order. Run "npm run lint" to see exactly what's wrong, or check the CI step output.

@damencho
Copy link
Member

jenkins test this please

@saghul
Copy link
Member

saghul commented Jul 31, 2024

Looks like there are some typing errors you need to tackle in the JM PR:

+ cd jitsi-meet
+ PID_MAKE=585237
+ wait 585237
+ make
NODE_OPTIONS=--max-old-space-size=8192 \
./node_modules/.bin/webpack
[BABEL] Note: The code generator has deoptimised the styling of /home/jenkins/workspace/pr-test/jitsi-meet/node_modules/@vladmandic/human/dist/human.esm.js as it exceeds the max of 500KB.
[BABEL] Note: The code generator has deoptimised the styling of /home/jenkins/workspace/pr-test/jitsi-meet/node_modules/lodash/lodash.js as it exceeds the max of 500KB.
[BABEL] Note: The code generator has deoptimised the styling of /home/jenkins/workspace/pr-test/jitsi-meet/node_modules/@jitsi/excalidraw/dist/excalidraw.production.min.js as it exceeds the max of 500KB.
[BABEL] Note: The code generator has deoptimised the styling of /home/jenkins/workspace/pr-test/jitsi-meet/node_modules/lodash/lodash.js as it exceeds the max of 500KB.
[BABEL] Note: The code generator has deoptimised the styling of /home/jenkins/workspace/pr-test/jitsi-meet/node_modules/zxcvbn/lib/frequency_lists.js as it exceeds the max of 500KB.
assets by status 4.46 MiB [cached] 1 asset
orphan modules 5.45 MiB [orphan] 1793 modules
runtime modules 2.77 KiB 10 modules
cacheable modules 9.76 MiB
  modules by path ./node_modules/ 4.58 MiB
    javascript modules 4.52 MiB 325 modules
    json modules 67.1 KiB
      modules by path ./node_modules/@giphy/ 3.82 KiB 3 modules
      + 3 modules
  modules by path ./react/features/ 59.1 KiB
    modules by path ./react/features/base/ 42 bytes 2 modules
    modules by path ./react/features/stream-effects/ 57.5 KiB 2 modules
    ./react/features/screenshot-capture/createImageBitmap.js 703 bytes [built] [code generated]
    ./react/features/face-landmarks/createImageBitmap.ts 906 bytes [built] [code generated]
  + 8 modules

ERROR in /home/jenkins/workspace/pr-test/jitsi-meet/react/features/breakout-rooms/middleware.ts
./react/features/breakout-rooms/middleware.ts 86:91-93
[tsl] ERROR in /home/jenkins/workspace/pr-test/jitsi-meet/react/features/breakout-rooms/middleware.ts(86,92)
      TS2339: Property 'id' does not exist on type 'IMessage'.
 @ ./react/features/app/middlewares.any.ts 22:0-38
 @ ./react/features/app/middlewares.web.ts 25:0-27
 @ ./react/features/app/components/App.web.tsx 9:0-24
 @ ./react/index.web.js 3:0-56 50:7-10
 @ ./app.js 40:0-17

ERROR in /home/jenkins/workspace/pr-test/jitsi-meet/react/features/breakout-rooms/middleware.ts
./react/features/breakout-rooms/middleware.ts 91:92-94
[tsl] ERROR in /home/jenkins/workspace/pr-test/jitsi-meet/react/features/breakout-rooms/middleware.ts(91,93)
      TS2339: Property 'id' does not exist on type 'IMessage'.
 @ ./react/features/app/middlewares.any.ts 22:0-38
 @ ./react/features/app/middlewares.web.ts 25:0-27
 @ ./react/features/app/components/App.web.tsx 9:0-24
 @ ./react/index.web.js 3:0-56 50:7-10
 @ ./app.js 40:0-17

ERROR in /home/jenkins/workspace/pr-test/jitsi-meet/react/features/chat/functions.ts
./react/features/chat/functions.ts 175:58-60
[tsl] ERROR in /home/jenkins/workspace/pr-test/jitsi-meet/react/features/chat/functions.ts(175,59)
      TS2339: Property 'id' does not exist on type 'IMessage'.
 @ ./react/features/chat/middleware.ts 26:0-45 47:26-40
 @ ./react/features/lobby/actions.any.ts 6:0-64 358:32-58
 @ ./conference.js 37:0-86 1231:29-61
 @ ./app.js 15:0-38 29:2-12

ERROR in /home/jenkins/workspace/pr-test/jitsi-meet/react/features/chat/components/AbstractMessageContainer.ts
./react/features/chat/components/AbstractMessageContainer.ts 39:24-26
[tsl] ERROR in /home/jenkins/workspace/pr-test/jitsi-meet/react/features/chat/components/AbstractMessageContainer.ts(39,25)
      TS2339: Property 'id' does not exist on type 'IMessage'.
 @ ./react/features/chat/components/web/MessageContainer.tsx 5:0-67 13:46-70
 @ ./react/features/chat/components/web/Chat.tsx 16:0-50 127:36-52
 @ ./react/features/conference/components/web/Conference.tsx 11:0-53 125:32-36
 @ ./react/features/app/getRouteToRender.web.ts 9:0-65 76:30-40
 @ ./react/features/app/middleware.ts 10:0-55 126:4-21
 @ ./react/features/app/middlewares.any.ts 57:0-22
 @ ./react/features/app/middlewares.web.ts 25:0-27
 @ ./react/features/app/components/App.web.tsx 9:0-24
 @ ./react/index.web.js 3:0-56 50:7-10
 @ ./app.js 40:0-17

ERROR in /home/jenkins/workspace/pr-test/jitsi-meet/react/features/chat/components/AbstractMessageContainer.ts
./react/features/chat/components/AbstractMessageContainer.ts 45:52-54
[tsl] ERROR in /home/jenkins/workspace/pr-test/jitsi-meet/react/features/chat/components/AbstractMessageContainer.ts(45,53)
      TS2339: Property 'id' does not exist on type 'IMessage'.
 @ ./react/features/chat/components/web/MessageContainer.tsx 5:0-67 13:46-70
 @ ./react/features/chat/components/web/Chat.tsx 16:0-50 127:36-52
 @ ./react/features/conference/components/web/Conference.tsx 11:0-53 125:32-36
 @ ./react/features/app/getRouteToRender.web.ts 9:0-65 76:30-40
 @ ./react/features/app/middleware.ts 10:0-55 126:4-21
 @ ./react/features/app/middlewares.any.ts 57:0-22
 @ ./react/features/app/middlewares.web.ts 25:0-27
 @ ./react/features/app/components/App.web.tsx 9:0-24
 @ ./react/index.web.js 3:0-56 50:7-10
 @ ./app.js 40:0-17

ERROR in /home/jenkins/workspace/pr-test/jitsi-meet/react/features/chat/components/web/ChatMessage.tsx
./react/features/chat/components/web/ChatMessage.tsx 200:62-64
[tsl] ERROR in /home/jenkins/workspace/pr-test/jitsi-meet/react/features/chat/components/web/ChatMessage.tsx(200,63)
      TS2339: Property 'id' does not exist on type 'IMessage'.
 @ ./react/features/chat/components/web/ChatMessageGroup.tsx 5:0-40 41:159-170
 @ ./react/features/chat/components/web/MessageContainer.tsx 6:0-50 49:40-56
 @ ./react/features/chat/components/web/Chat.tsx 16:0-50 127:36-52
 @ ./react/features/conference/components/web/Conference.tsx 11:0-53 125:32-36
 @ ./react/features/app/getRouteToRender.web.ts 9:0-65 76:30-40
 @ ./react/features/app/middleware.ts 10:0-55 126:4-21
 @ ./react/features/app/middlewares.any.ts 57:0-22
 @ ./react/features/app/middlewares.web.ts 25:0-27
 @ ./react/features/app/components/App.web.tsx 9:0-24
 @ ./react/index.web.js 3:0-56 50:7-10
 @ ./app.js 40:0-17

ERROR in /home/jenkins/workspace/pr-test/jitsi-meet/react/features/chat/components/web/ChatMessageGroup.tsx
./react/features/chat/components/web/ChatMessageGroup.tsx 69:46-48
[tsl] ERROR in /home/jenkins/workspace/pr-test/jitsi-meet/react/features/chat/components/web/ChatMessageGroup.tsx(69,47)
      TS2339: Property 'id' does not exist on type 'IMessage'.
 @ ./react/features/chat/components/web/MessageContainer.tsx 6:0-50 49:40-56
 @ ./react/features/chat/components/web/Chat.tsx 16:0-50 127:36-52
 @ ./react/features/conference/components/web/Conference.tsx 11:0-53 125:32-36
 @ ./react/features/app/getRouteToRender.web.ts 9:0-65 76:30-40
 @ ./react/features/app/middleware.ts 10:0-55 126:4-21
 @ ./react/features/app/middlewares.any.ts 57:0-22
 @ ./react/features/app/middlewares.web.ts 25:0-27
 @ ./react/features/app/components/App.web.tsx 9:0-24
 @ ./react/index.web.js 3:0-56 50:7-10
 @ ./app.js 40:0-17

7 errors have detailed information that is not shown.
Use 'stats.errorDetails: true' resp. '--stats-error-details' to show it.

webpack 5.76.0 compiled with 7 errors in 226806 ms

assets by status 382 KiB [cached] 1 asset
orphan modules 599 KiB [orphan] 345 modules
runtime modules 2.37 KiB 7 modules
cacheable modules 1.13 MiB
  modules by path ./node_modules/react/ 8.91 KiB
    ./node_modules/react/index.js 189 bytes [built] [code generated]
    ./node_modules/react/cjs/react.production.min.js 8.73 KiB [built] [code generated]
  modules by path ./node_modules/react-dom/ 193 KiB
    ./node_modules/react-dom/index.js 1.32 KiB [built] [code generated]
    ./node_modules/react-dom/cjs/react-dom.production.min.js 192 KiB [built] [code generated]
  modules by path ./node_modules/scheduler/ 5.91 KiB
    ./node_modules/scheduler/index.js 197 bytes [built] [code generated]
    ./node_modules/scheduler/cjs/scheduler.production.min.js 5.72 KiB [built] [code generated]
  ./react/features/always-on-top/index.tsx + 204 modules 358 KiB [built] [code generated]
  ./node_modules/grapheme-splitter/index.js 120 KiB [built] [code generated]
  ./node_modules/lodash/lodash.js 469 KiB [built] [code generated]

ERROR in /home/jenkins/workspace/pr-test/jitsi-meet/react/features/breakout-rooms/middleware.ts
86:91-93
[tsl] ERROR in /home/jenkins/workspace/pr-test/jitsi-meet/react/features/breakout-rooms/middleware.ts(86,92)
      TS2339: Property 'id' does not exist on type 'IMessage'.

ERROR in /home/jenkins/workspace/pr-test/jitsi-meet/react/features/breakout-rooms/middleware.ts
91:92-94
[tsl] ERROR in /home/jenkins/workspace/pr-test/jitsi-meet/react/features/breakout-rooms/middleware.ts(91,93)
      TS2339: Property 'id' does not exist on type 'IMessage'.

ERROR in /home/jenkins/workspace/pr-test/jitsi-meet/react/features/chat/functions.ts
175:58-60
[tsl] ERROR in /home/jenkins/workspace/pr-test/jitsi-meet/react/features/chat/functions.ts(175,59)
      TS2339: Property 'id' does not exist on type 'IMessage'.

ERROR in /home/jenkins/workspace/pr-test/jitsi-meet/react/features/chat/components/AbstractMessageContainer.ts
39:24-26
[tsl] ERROR in /home/jenkins/workspace/pr-test/jitsi-meet/react/features/chat/components/AbstractMessageContainer.ts(39,25)
      TS2339: Property 'id' does not exist on type 'IMessage'.

ERROR in /home/jenkins/workspace/pr-test/jitsi-meet/react/features/chat/components/AbstractMessageContainer.ts
45:52-54
[tsl] ERROR in /home/jenkins/workspace/pr-test/jitsi-meet/react/features/chat/components/AbstractMessageContainer.ts(45,53)
      TS2339: Property 'id' does not exist on type 'IMessage'.

ERROR in /home/jenkins/workspace/pr-test/jitsi-meet/react/features/chat/components/web/ChatMessage.tsx
200:62-64
[tsl] ERROR in /home/jenkins/workspace/pr-test/jitsi-meet/react/features/chat/components/web/ChatMessage.tsx(200,63)
      TS2339: Property 'id' does not exist on type 'IMessage'.

ERROR in /home/jenkins/workspace/pr-test/jitsi-meet/react/features/chat/components/web/ChatMessageGroup.tsx
69:46-48
[tsl] ERROR in /home/jenkins/workspace/pr-test/jitsi-meet/react/features/chat/components/web/ChatMessageGroup.tsx(69,47)
      TS2339: Property 'id' does not exist on type 'IMessage'.

7 errors have detailed information that is not shown.
Use 'stats.errorDetails: true' resp. '--stats-error-details' to show it.

webpack 5.76.0 compiled with 7 errors in 172911 ms

assets by status 2.17 KiB [cached] 1 asset
orphan modules 6.95 KiB [orphan] 2 modules
./react/features/analytics/handlers/GoogleAnalyticsHandler.ts + 2 modules 11.7 KiB [built] [code generated]

ERROR in /home/jenkins/workspace/pr-test/jitsi-meet/react/features/breakout-rooms/middleware.ts
86:91-93
[tsl] ERROR in /home/jenkins/workspace/pr-test/jitsi-meet/react/features/breakout-rooms/middleware.ts(86,92)
      TS2339: Property 'id' does not exist on type 'IMessage'.

ERROR in /home/jenkins/workspace/pr-test/jitsi-meet/react/features/breakout-rooms/middleware.ts
91:92-94
[tsl] ERROR in /home/jenkins/workspace/pr-test/jitsi-meet/react/features/breakout-rooms/middleware.ts(91,93)
      TS2339: Property 'id' does not exist on type 'IMessage'.

ERROR in /home/jenkins/workspace/pr-test/jitsi-meet/react/features/chat/functions.ts
175:58-60
[tsl] ERROR in /home/jenkins/workspace/pr-test/jitsi-meet/react/features/chat/functions.ts(175,59)
      TS2339: Property 'id' does not exist on type 'IMessage'.

ERROR in /home/jenkins/workspace/pr-test/jitsi-meet/react/features/chat/components/AbstractMessageContainer.ts
39:24-26
[tsl] ERROR in /home/jenkins/workspace/pr-test/jitsi-meet/react/features/chat/components/AbstractMessageContainer.ts(39,25)
      TS2339: Property 'id' does not exist on type 'IMessage'.

ERROR in /home/jenkins/workspace/pr-test/jitsi-meet/react/features/chat/components/AbstractMessageContainer.ts
45:52-54
[tsl] ERROR in /home/jenkins/workspace/pr-test/jitsi-meet/react/features/chat/components/AbstractMessageContainer.ts(45,53)
      TS2339: Property 'id' does not exist on type 'IMessage'.

ERROR in /home/jenkins/workspace/pr-test/jitsi-meet/react/features/chat/components/web/ChatMessage.tsx
200:62-64
[tsl] ERROR in /home/jenkins/workspace/pr-test/jitsi-meet/react/features/chat/components/web/ChatMessage.tsx(200,63)
      TS2339: Property 'id' does not exist on type 'IMessage'.

ERROR in /home/jenkins/workspace/pr-test/jitsi-meet/react/features/chat/components/web/ChatMessageGroup.tsx
69:46-48
[tsl] ERROR in /home/jenkins/workspace/pr-test/jitsi-meet/react/features/chat/components/web/ChatMessageGroup.tsx(69,47)
      TS2339: Property 'id' does not exist on type 'IMessage'.

7 errors have detailed information that is not shown.
Use 'stats.errorDetails: true' resp. '--stats-error-details' to show it.

webpack 5.76.0 compiled with 7 errors in 53818 ms

asset close3.min.js 0 bytes [emitted] [minimized] (name: close3)
./static/close3.js 1 bytes [built] [code generated]
webpack 5.76.0 compiled successfully in 26629 ms

assets by status 37.3 KiB [cached] 1 asset
orphan modules 52.6 KiB [orphan] 14 modules
runtime modules 663 bytes 3 modules
cacheable modules 136 KiB
  modules by path ./node_modules/ 38.7 KiB
    modules by path ./node_modules/@jitsi/ 20.9 KiB
      ./node_modules/@jitsi/logger/lib/index.js 3.98 KiB [built] [code generated]
      + 2 modules
    modules by path ./node_modules/@braintree/sanitize-url/dist/*.js 1.9 KiB
      ./node_modules/@braintree/sanitize-url/dist/index.js 1.25 KiB [built] [code generated]
      ./node_modules/@braintree/sanitize-url/dist/constants.js 667 bytes [built] [code generated]
    ./node_modules/events/events.js 13.9 KiB [built] [code generated]
    ./node_modules/@hapi/bourne/lib/index.js 2.02 KiB [built] [code generated]
  modules by path ./modules/API/external/*.js 97.8 KiB
    ./modules/API/external/index.js 171 bytes [built] [code generated]
    ./modules/API/external/external_api.js + 13 modules 97.6 KiB [built] [code generated]

ERROR in /home/jenkins/workspace/pr-test/jitsi-meet/react/features/breakout-rooms/middleware.ts
86:91-93
[tsl] ERROR in /home/jenkins/workspace/pr-test/jitsi-meet/react/features/breakout-rooms/middleware.ts(86,92)
      TS2339: Property 'id' does not exist on type 'IMessage'.

ERROR in /home/jenkins/workspace/pr-test/jitsi-meet/react/features/breakout-rooms/middleware.ts
91:92-94
[tsl] ERROR in /home/jenkins/workspace/pr-test/jitsi-meet/react/features/breakout-rooms/middleware.ts(91,93)
      TS2339: Property 'id' does not exist on type 'IMessage'.

ERROR in /home/jenkins/workspace/pr-test/jitsi-meet/react/features/chat/functions.ts
175:58-60
[tsl] ERROR in /home/jenkins/workspace/pr-test/jitsi-meet/react/features/chat/functions.ts(175,59)
      TS2339: Property 'id' does not exist on type 'IMessage'.

ERROR in /home/jenkins/workspace/pr-test/jitsi-meet/react/features/chat/components/AbstractMessageContainer.ts
39:24-26
[tsl] ERROR in /home/jenkins/workspace/pr-test/jitsi-meet/react/features/chat/components/AbstractMessageContainer.ts(39,25)
      TS2339: Property 'id' does not exist on type 'IMessage'.

ERROR in /home/jenkins/workspace/pr-test/jitsi-meet/react/features/chat/components/AbstractMessageContainer.ts
45:52-54
[tsl] ERROR in /home/jenkins/workspace/pr-test/jitsi-meet/react/features/chat/components/AbstractMessageContainer.ts(45,53)
      TS2339: Property 'id' does not exist on type 'IMessage'.

ERROR in /home/jenkins/workspace/pr-test/jitsi-meet/react/features/chat/components/web/ChatMessage.tsx
200:62-64
[tsl] ERROR in /home/jenkins/workspace/pr-test/jitsi-meet/react/features/chat/components/web/ChatMessage.tsx(200,63)
      TS2339: Property 'id' does not exist on type 'IMessage'.

ERROR in /home/jenkins/workspace/pr-test/jitsi-meet/react/features/chat/components/web/ChatMessageGroup.tsx
69:46-48
[tsl] ERROR in /home/jenkins/workspace/pr-test/jitsi-meet/react/features/chat/components/web/ChatMessageGroup.tsx(69,47)
      TS2339: Property 'id' does not exist on type 'IMessage'.

7 errors have detailed information that is not shown.
Use 'stats.errorDetails: true' resp. '--stats-error-details' to show it.

webpack 5.76.0 compiled with 7 errors in 102606 ms

assets by status 1.81 MiB [cached] 1 asset
orphan modules 3.01 MiB [orphan] 508 modules
runtime modules 914 bytes 5 modules
cacheable modules 2.69 MiB
  modules by path ./ 2.69 MiB
    modules by path ./node_modules/@tensorflow/tfjs-backend-wasm/ 137 KiB
      ./node_modules/@tensorflow/tfjs-backend-wasm/wasm-out/tfjs-backend-wasm-threaded-simd.js 94.9 KiB [built] [code generated]
      ./node_modules/@tensorflow/tfjs-backend-wasm/wasm-out/tfjs-backend-wasm.js 42.2 KiB [built] [code generated]
    ./react/features/face-landmarks/faceLandmarksWorker.ts + 293 modules 2.52 MiB [built] [code generated]
    ./node_modules/long/src/long.js 35.9 KiB [built] [code generated]
  + 7 modules

ERROR in /home/jenkins/workspace/pr-test/jitsi-meet/react/features/breakout-rooms/middleware.ts
86:91-93
[tsl] ERROR in /home/jenkins/workspace/pr-test/jitsi-meet/react/features/breakout-rooms/middleware.ts(86,92)
      TS2339: Property 'id' does not exist on type 'IMessage'.

ERROR in /home/jenkins/workspace/pr-test/jitsi-meet/react/features/breakout-rooms/middleware.ts
91:92-94
[tsl] ERROR in /home/jenkins/workspace/pr-test/jitsi-meet/react/features/breakout-rooms/middleware.ts(91,93)
      TS2339: Property 'id' does not exist on type 'IMessage'.

ERROR in /home/jenkins/workspace/pr-test/jitsi-meet/react/features/chat/functions.ts
175:58-60
[tsl] ERROR in /home/jenkins/workspace/pr-test/jitsi-meet/react/features/chat/functions.ts(175,59)
      TS2339: Property 'id' does not exist on type 'IMessage'.

ERROR in /home/jenkins/workspace/pr-test/jitsi-meet/react/features/chat/components/AbstractMessageContainer.ts
39:24-26
[tsl] ERROR in /home/jenkins/workspace/pr-test/jitsi-meet/react/features/chat/components/AbstractMessageContainer.ts(39,25)
      TS2339: Property 'id' does not exist on type 'IMessage'.

ERROR in /home/jenkins/workspace/pr-test/jitsi-meet/react/features/chat/components/AbstractMessageContainer.ts
45:52-54
[tsl] ERROR in /home/jenkins/workspace/pr-test/jitsi-meet/react/features/chat/components/AbstractMessageContainer.ts(45,53)
      TS2339: Property 'id' does not exist on type 'IMessage'.

ERROR in /home/jenkins/workspace/pr-test/jitsi-meet/react/features/chat/components/web/ChatMessage.tsx
200:62-64
[tsl] ERROR in /home/jenkins/workspace/pr-test/jitsi-meet/react/features/chat/components/web/ChatMessage.tsx(200,63)
      TS2339: Property 'id' does not exist on type 'IMessage'.

ERROR in /home/jenkins/workspace/pr-test/jitsi-meet/react/features/chat/components/web/ChatMessageGroup.tsx
69:46-48
[tsl] ERROR in /home/jenkins/workspace/pr-test/jitsi-meet/react/features/chat/components/web/ChatMessageGroup.tsx(69,47)
      TS2339: Property 'id' does not exist on type 'IMessage'.

7 errors have detailed information that is not shown.
Use 'stats.errorDetails: true' resp. '--stats-error-details' to show it.

webpack 5.76.0 compiled with 7 errors in 153327 ms

assets by status 154 KiB [cached] 1 asset
orphan modules 181 KiB [orphan] 5 modules
./react/features/stream-effects/noise-suppression/NoiseSuppressorWorklet.ts + 5 modules 189 KiB [built] [code generated]

ERROR in /home/jenkins/workspace/pr-test/jitsi-meet/react/features/breakout-rooms/middleware.ts
86:91-93
[tsl] ERROR in /home/jenkins/workspace/pr-test/jitsi-meet/react/features/breakout-rooms/middleware.ts(86,92)
      TS2339: Property 'id' does not exist on type 'IMessage'.

ERROR in /home/jenkins/workspace/pr-test/jitsi-meet/react/features/breakout-rooms/middleware.ts
91:92-94
[tsl] ERROR in /home/jenkins/workspace/pr-test/jitsi-meet/react/features/breakout-rooms/middleware.ts(91,93)
      TS2339: Property 'id' does not exist on type 'IMessage'.

ERROR in /home/jenkins/workspace/pr-test/jitsi-meet/react/features/chat/functions.ts
175:58-60
[tsl] ERROR in /home/jenkins/workspace/pr-test/jitsi-meet/react/features/chat/functions.ts(175,59)
      TS2339: Property 'id' does not exist on type 'IMessage'.

ERROR in /home/jenkins/workspace/pr-test/jitsi-meet/react/features/chat/components/AbstractMessageContainer.ts
39:24-26
[tsl] ERROR in /home/jenkins/workspace/pr-test/jitsi-meet/react/features/chat/components/AbstractMessageContainer.ts(39,25)
      TS2339: Property 'id' does not exist on type 'IMessage'.

ERROR in /home/jenkins/workspace/pr-test/jitsi-meet/react/features/chat/components/AbstractMessageContainer.ts
45:52-54
[tsl] ERROR in /home/jenkins/workspace/pr-test/jitsi-meet/react/features/chat/components/AbstractMessageContainer.ts(45,53)
      TS2339: Property 'id' does not exist on type 'IMessage'.

ERROR in /home/jenkins/workspace/pr-test/jitsi-meet/react/features/chat/components/web/ChatMessage.tsx
200:62-64
[tsl] ERROR in /home/jenkins/workspace/pr-test/jitsi-meet/react/features/chat/components/web/ChatMessage.tsx(200,63)
      TS2339: Property 'id' does not exist on type 'IMessage'.

ERROR in /home/jenkins/workspace/pr-test/jitsi-meet/react/features/chat/components/web/ChatMessageGroup.tsx
69:46-48
[tsl] ERROR in /home/jenkins/workspace/pr-test/jitsi-meet/react/features/chat/components/web/ChatMessageGroup.tsx(69,47)
      TS2339: Property 'id' does not exist on type 'IMessage'.

7 errors have detailed information that is not shown.
Use 'stats.errorDetails: true' resp. '--stats-error-details' to show it.

webpack 5.76.0 compiled with 7 errors in 89022 ms

assets by status 3.75 KiB [cached] 1 asset
runtime modules 663 bytes 3 modules
orphan modules 1000 bytes [orphan] 1 module
cacheable modules 11.5 KiB
  ./react/features/screenshot-capture/worker.ts + 1 modules 3.7 KiB [built] [code generated]
  ./node_modules/pixelmatch/index.js 7.79 KiB [built] [code generated]

ERROR in /home/jenkins/workspace/pr-test/jitsi-meet/react/features/breakout-rooms/middleware.ts
86:91-93
[tsl] ERROR in /home/jenkins/workspace/pr-test/jitsi-meet/react/features/breakout-rooms/middleware.ts(86,92)
      TS2339: Property 'id' does not exist on type 'IMessage'.

ERROR in /home/jenkins/workspace/pr-test/jitsi-meet/react/features/breakout-rooms/middleware.ts
91:92-94
[tsl] ERROR in /home/jenkins/workspace/pr-test/jitsi-meet/react/features/breakout-rooms/middleware.ts(91,93)
      TS2339: Property 'id' does not exist on type 'IMessage'.

ERROR in /home/jenkins/workspace/pr-test/jitsi-meet/react/features/chat/functions.ts
175:58-60
[tsl] ERROR in /home/jenkins/workspace/pr-test/jitsi-meet/react/features/chat/functions.ts(175,59)
      TS2339: Property 'id' does not exist on type 'IMessage'.

ERROR in /home/jenkins/workspace/pr-test/jitsi-meet/react/features/chat/components/AbstractMessageContainer.ts
39:24-26
[tsl] ERROR in /home/jenkins/workspace/pr-test/jitsi-meet/react/features/chat/components/AbstractMessageContainer.ts(39,25)
      TS2339: Property 'id' does not exist on type 'IMessage'.

ERROR in /home/jenkins/workspace/pr-test/jitsi-meet/react/features/chat/components/AbstractMessageContainer.ts
45:52-54
[tsl] ERROR in /home/jenkins/workspace/pr-test/jitsi-meet/react/features/chat/components/AbstractMessageContainer.ts(45,53)
      TS2339: Property 'id' does not exist on type 'IMessage'.

ERROR in /home/jenkins/workspace/pr-test/jitsi-meet/react/features/chat/components/web/ChatMessage.tsx
200:62-64
[tsl] ERROR in /home/jenkins/workspace/pr-test/jitsi-meet/react/features/chat/components/web/ChatMessage.tsx(200,63)
      TS2339: Property 'id' does not exist on type 'IMessage'.

ERROR in /home/jenkins/workspace/pr-test/jitsi-meet/react/features/chat/components/web/ChatMessageGroup.tsx
69:46-48
[tsl] ERROR in /home/jenkins/workspace/pr-test/jitsi-meet/react/features/chat/components/web/ChatMessageGroup.tsx(69,47)
      TS2339: Property 'id' does not exist on type 'IMessage'.

7 errors have detailed information that is not shown.
Use 'stats.errorDetails: true' resp. '--stats-error-details' to show it.

webpack 5.76.0 compiled with 7 errors in 65430 ms
make: *** [Makefile:30: compile] Error 1

@he-patrick
Copy link
Contributor Author

For the parameters, lint says to put them in ascending order. Should I do that or did we want to keep the custom order? And if so do I add eslint-disable sort-vars?

image

@saghul
Copy link
Member

saghul commented Jul 31, 2024

For the parameters, lint says to put them in ascending order. Should I do that or did we want to keep the custom order? And if so do I add eslint-disable sort-vars?

You can sort them since they are really an object, not plain parameters where the order matters.

@saghul
Copy link
Member

saghul commented Aug 5, 2024

Jenkins please test this please.

@saghul
Copy link
Member

saghul commented Aug 6, 2024

Unrelated test failure, landing.

@saghul saghul merged commit a97a8df into jitsi:master Aug 6, 2024
1 of 2 checks passed
@saghul
Copy link
Member

saghul commented Aug 6, 2024

Great work @he-patrick ! 🚀

@damencho
Copy link
Member

damencho commented Aug 6, 2024

It may be related, as the error is in IFrameAPICommandsTest. testCommandSendChatMessage ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants