From 82e2ab808de878ed915ed5b8ee30501d5abe86fb Mon Sep 17 00:00:00 2001 From: Michel Bagnol Date: Thu, 27 Jun 2019 18:06:32 +0200 Subject: [PATCH] (ignore) code formatting. --- MumbleSharp/Model/User.cs | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/MumbleSharp/Model/User.cs b/MumbleSharp/Model/User.cs index 541fa73..025e4f7 100644 --- a/MumbleSharp/Model/User.cs +++ b/MumbleSharp/Model/User.cs @@ -91,12 +91,13 @@ public void Move(Channel channel) /// public void SendUserState() { - UserState userstate = new UserState(); - userstate.Actor = this.Id; - userstate.ChannelId = this.ChannelId; - userstate.SelfMute = this.SelfMuted; - userstate.SelfDeaf = this.SelfDeaf; - _owner.Connection.SendControl(PacketType.UserState, userstate); + _owner.Connection.SendControl(PacketType.UserState, new UserState() + { + Actor = this.Id, + ChannelId = this.ChannelId, + SelfMute = this.SelfMuted, + SelfDeaf = this.SelfDeaf, + }); } protected internal IVoiceCodec GetCodec(SpeechCodecs codec)