-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
getUserHash returns an empty hash in a onUserAdded callback #5965
Comments
Reason being: The event is fired inside the |
Fixing this probably requires changing some of the event function's guarantees. The statements about when these events are triggered outside of the obvious case would have to be removed: mumble/plugins/MumblePlugin_v_1_1_x.h Lines 398 to 422 in cc5a570
mumble/plugins/MumblePlugin_v_1_1_x.h Lines 277 to 303 in cc5a570
mumble/plugins/MumblePlugin_v_1_1_x.h Lines 380 to 396 in cc5a570
However, this would essentially break backwards compatibility with (potentially) existing plugins 👀 |
Description
If you try to call
getUserHash
on the plugin API in aonUserAdded
callback you'll getMUMBLE_EC_OK
with an empty hash.Steps to reproduce
Try to call
getUserHash
on the plugin API in aonUserAdded
callback you'll getMUMBLE_EC_OK
with an empty hash.Mumble version
No response
Mumble component
Client
OS
Windows
Reproducible?
Yes
Additional information
@Krzmbrzl linked this code snippet on Matrix:
mumble/src/mumble/Messages.cpp
Lines 354 to 365 in 815e8b1
Relevant log output
No response
Screenshots
No response
The text was updated successfully, but these errors were encountered: