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

[MIRROR] [Modular] Fixes Telepathy quirk sending empty messages #2805

Merged
merged 1 commit into from
Apr 10, 2024

Conversation

Steals-The-PRs
Copy link
Collaborator

Original PR: NovaSector/NovaSector#1894

About The Pull Request

This fixes the telepathy quirk specifically to not send an empty message if the user hits cancel, the x, or just enter with a empty message.

Before the tgui_text_imput didnt have its default value set to null. tgui_text_input sends that default value whenever the user hits the x or cancel. Without it it just becomes a empty string, which before was valid for the message to be sent to people.

This also checks now for if the message has a length of 0 and will refuse to send it too as its a empty message

How This Contributes To The Nova Sector Roleplay Experience

Less bugs, more indecisive psychics.

Proof of Testing

Screenshots/Videos

Hard for me to test by myself, as it requires to have two clients. I did test this change with a friend i just kinda forgot to record evidence, and don't wana pester them to rejoin my local server to test it more. It works and I have tested it

Changelog

🆑 SomeRandomOwl
fix: Telepathy quirk no longer sends empty messages on hitting the cancel button or closing the window.
/:cl:

@ReezeBL ReezeBL merged commit 9c03ff0 into master Apr 10, 2024
26 checks passed
@ReezeBL ReezeBL deleted the upstream-mirror-1894 branch April 10, 2024 21:28
AnywayFarus added a commit that referenced this pull request Apr 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants