-
Notifications
You must be signed in to change notification settings - Fork 303
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
Jim/FEQ-300/sendbird-connection-should-be-made-first #9378
Jim/FEQ-300/sendbird-connection-should-be-made-first #9378
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
A production App ID was automatically generated for this PR. (log)
Click here to copy & paste above information.
|
🚨 Lighthouse report for the changes in this PR:
Lighthouse ran with https://deriv-app-git-fork-jim-deriv-jim-feq-300sendbird-connect-1bd370.binary.sx/ |
} | ||
|
||
sendMessage(message) { | ||
const modified_message = message.replace(/^[\r\n]+|[\r\n]+$/g, ''); |
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.
Not quite sure why the original author didn't use message.trim()
here, because it seems like the regex
just matches and replace new line
or return carriage characters
. Will add it to QA checklist to verify this, because the regex
causes a security hotspot
, so I decided to replace it with .trim()
.
⏳ Generating Lighthouse report... |
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
* chore: upgrade sendbird to v4 * chore: await async method calls * chore: await aync method calls * chore: resolve code smells * chore: resolve code smells * fix: fix failing tests * chore: add types and await async method calls
Changes:
sendbird
fromv3
(which is deprecated) tov4
and added checks to prevent making calls to thesendbird api
, before thechannel_url
is set.sendbird_store
andchat-message
toTypeScript
Migration guide: sendbird