Skip to content

Commit

Permalink
client(voice): setting "Direct"-flag on "StopRadioCommunication"
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackFlash5 committed Feb 18, 2021
1 parent a980939 commit 2fdc29f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions saltychat/SaltyClient/Model.cs
Original file line number Diff line number Diff line change
Expand Up @@ -495,14 +495,14 @@ public class RadioCommunication
#endregion

#region CTOR
public RadioCommunication(string name, RadioType senderRadioType, RadioType ownRadioType, bool playMicClick, bool isSecondary)
public RadioCommunication(string name, RadioType senderRadioType, RadioType ownRadioType, bool playMicClick, bool direct, bool isSecondary)
{
this.Name = name;
this.SenderRadioType = senderRadioType;
this.OwnRadioType = ownRadioType;
this.PlayMicClick = playMicClick;

this.Direct = true;
this.Direct = direct;
this.Secondary = isSecondary;
}

Expand Down
2 changes: 2 additions & 0 deletions saltychat/SaltyClient/VoiceManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,7 @@ private void OnPlayerIsSendingRelayed(string handle, string radioChannel, bool i
RadioType.None,
RadioType.None,
stateChange,
direct,
this.SecondaryRadioChannel == radioChannel
)
)
Expand Down Expand Up @@ -441,6 +442,7 @@ private void OnPlayerIsSendingRelayed(string handle, string radioChannel, bool i
RadioType.None,
RadioType.None,
stateChange,
direct,
this.SecondaryRadioChannel == radioChannel
)
)
Expand Down

0 comments on commit 2fdc29f

Please sign in to comment.