diff options
author | Robert Adam <dev@robert-adam.de> | 2022-09-22 11:00:30 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-22 11:00:30 +0300 |
commit | 600ffb476a62901d374926cf8cab6875f4c93bbf (patch) | |
tree | a977c476c31116079170d0311046f021d4a19baf | |
parent | 40f2edb3023ec4584cbfa4be57e6726304566d67 (diff) | |
parent | 93019fd0cca61693edd0b81d526204f18e9a1d55 (diff) |
Merge PR #5893: FIX(server, rpc): Don't send useless UserState message
As it was, the sent UserState message would have only contained the user's session ID, which in and of itself is absolutely useless. Thus, it is better to not send a UserState message in this case.
-rw-r--r-- | src/murmur/RPC.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/murmur/RPC.cpp b/src/murmur/RPC.cpp index 2cc62da66..3ef6b6b19 100644 --- a/src/murmur/RPC.cpp +++ b/src/murmur/RPC.cpp @@ -408,10 +408,6 @@ void Server::setListenerVolumeAdjustment(ServerUser *user, const Channel *cChann MumbleProto::UserState mpus; mpus.set_session(user->uiSession); - if (!broadcastListenerVolumeAdjustments) { - sendExcept(user, mpus); - } - MumbleProto::UserState::VolumeAdjustment *volume_adjustment = mpus.add_listening_volume_adjustment(); volume_adjustment->set_listening_channel(cChannel->iId); volume_adjustment->set_volume_adjustment(volumeAdjustment.factor); |