-
Notifications
You must be signed in to change notification settings - Fork 10.7k
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: option to start a discussion on an existing message is not showing up #32765
Conversation
Looks like this PR is ready to merge! 🎉 |
🦋 Changeset detectedLatest commit: b500826 The changes in this PR will be included in the next version bump. This PR includes changesets to release 32 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #32765 +/- ##
===========================================
+ Coverage 55.53% 55.60% +0.07%
===========================================
Files 2633 2637 +4
Lines 57259 57308 +49
Branches 11861 11868 +7
===========================================
+ Hits 31796 31865 +69
+ Misses 22773 22752 -21
- Partials 2690 2691 +1
Flags with carried forward coverage won't be shown. Click here to find out more. |
…ng up (#32765) Co-authored-by: gabriellsh <[email protected]>
The condition to show the "Start a Discussion" option on the message Actions list was accidentally changed as a side effect of an older PR.
Proposed changes (including videos or screenshots)
Issue(s)
Steps to test or reproduce
Further comments
PR #23971 changed a reference to the global
isNaN
withNumber.isNaN
. The two functions are not interchangeable, despite having the same name.The global
isNaN
will check if something is not a number, whileNumber.isNaN
checks if the specified value is specifically NaN.In the condition for the discussion action, an undefined
dcount
would causeNumber.isNaN
to return false and rocket.chat would then hide the option thinking that it is already a discussion.