-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Conversation
he-patrick
commented
Jul 29, 2024
•
edited
Loading
edited
- 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
Hi, thanks for your contribution! |
There was a problem hiding this 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); |
There was a problem hiding this comment.
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?
According to RFC:
it is possible that there is no id, is that a problem? |
Ugh, good point! How about we generate an uuid v4 in that case? |
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. |
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. |
jenkins test this please |
Looks like there are some typing errors you need to tackle in the JM PR:
|
You can sort them since they are really an object, not plain parameters where the order matters. |
Jenkins please test this please. |
Unrelated test failure, landing. |
Great work @he-patrick ! 🚀 |
It may be related, as the error is in IFrameAPICommandsTest. testCommandSendChatMessage ... |