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] start/unstar message #6861

Merged
merged 2 commits into from
May 2, 2017
Merged

[FIX] start/unstar message #6861

merged 2 commits into from
May 2, 2017

Conversation

karlprieb
Copy link
Contributor

@RocketChat/core

Closes #3876

peek 2017-05-02 17-41

@karlprieb karlprieb requested a review from sampaiodiego May 2, 2017 20:46
@engelgabriel engelgabriel temporarily deployed to rocket-chat-pr-6861 May 2, 2017 20:46 Inactive

const starred = _.findWhere(message.starred, {_id: Meteor.userId()});

return RocketChat.settings.get('Message_AllowStarring') && !starred;
Copy link
Member

Choose a reason for hiding this comment

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

there is no need to to a findWhere if RocketChat.settings.get('Message_AllowStarring') isn't true..

@engelgabriel engelgabriel temporarily deployed to rocket-chat-pr-6861 May 2, 2017 21:23 Inactive
@engelgabriel engelgabriel added this to the 0.56.0 milestone May 2, 2017
@engelgabriel engelgabriel merged commit 8dc691b into develop May 2, 2017
@engelgabriel engelgabriel deleted the fix-star-message branch May 2, 2017 21:44
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.

Starred message can't be re-starred after the first time until client is refreshed
3 participants