-
Notifications
You must be signed in to change notification settings - Fork 3
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
Add mumble registration related commands #591
Open
s-maurice
wants to merge
10
commits into
tf2pickup-org:master
Choose a base branch
from
s-maurice:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add userId as synced property, requires syncPropertyWithMapper as workaround. add register, deregister, renameRegistered methods on user.
…istered user by their name, and userRenameRegistered to rename by user id.
garrappachc
requested changes
May 28, 2024
Nice work! These are some useful commands :) |
garrappachc
requested changes
May 28, 2024
Removed magic number MinusOneButUnsigned Converted NoRegisteredUserError -> UserNotRegisteredError Moved getRegisteredUserWithName into client Removed syncPropertyWithMapper hack -> Mapping conversion is handled by getter/setter in User
What kind of tests am I missing? I'm not sure what I can test in the Other than that I think it's complete. |
Quality Gate passedIssues Measures |
Can you rebase to master or resolve merge conflicts? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adds
user-register
,get-registered-user
, anduser-rename-registered
commands. Registration deletion is handled by sending a rename command with an undefined name. I think filteringget-registered-user
has to pull down the whole user list. Maybe it's better to just have aget-registered-list
function instead or something.Adds
userId
as synced property. This stores the registration id.Instead of being a normal
syncProperty
, a variantsyncPropertyWithMapper
is used.This is a hack I'm using for now, because the murmur server will return
-1
(4294967295) on successful registration deletion.-1
values are mapped intoundefined
before syncing. I also ended up having to@ts-ignore
to make this work. There should be a better way to do this.For
userRenameRegistered
I'm not sure which packet to wait for. Currently I wait for aUserState
packet but that might not work if the renamed user is offline.Add
register
,deregister
,renameRegistered
methods on user.deregister
andrenameRegistered
are registration dependent, so the user doesn't even need to be online. It might be better to include them somewhere else.Don't merge yet, as tests are missing. Will fix after any changes. The linter is also broken on my machine.