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

Hide text when users join a room #2768

Closed
wants to merge 1 commit into from
Closed

Hide text when users join a room #2768

wants to merge 1 commit into from

Conversation

HoeenCoder
Copy link
Member

This enforces text being hidden.

@kotarou3
Copy link
Contributor

What is this meant to do? As far as I can see, all this code does is send extra |unlink|s on room join. Why is that needed? What are you trying to fix?

@HoeenCoder
Copy link
Member Author

It's for Fixes to text hiding in Issue #2444. It works by looping through the last 100 lines of the room log (which is what is visible to a user when they join a room) and looking for |unlink|hide|. If it finds that it sends the same command to the user who just joined. The room.log[i].substring(13) is the userid that refers to the messages we want to hide.

@Zarel
Copy link
Member

Zarel commented Sep 21, 2016

There's a better implementation sitting in Pull Requests somewhere...

@Zarel
Copy link
Member

Zarel commented Sep 21, 2016

Ah, yes, #2645 is the right approach. This pull request is the wrong approach.

We really need to do something about that pull request, though.

@Zarel Zarel closed this Sep 21, 2016
@HoeenCoder HoeenCoder deleted the patch branch September 21, 2016 14:56
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.

3 participants