Add contact preferences announcement

Persist contact options and announce them on chat connection and reconnection. Prepare the audio-only call contract; enforcement and audio-only media remain unimplemented.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
Paul Schneider 2026-11-16 01:10:47 +00:00
commit 9c4cce6840
Signed by: notazof
GPG key ID: AD4B9B545FBD7D12
11 changed files with 150 additions and 5 deletions

View file

@ -9,6 +9,14 @@ namespace Yavsc.Server.Hubs;
public partial class ChatHub
{
public void SetContactPreferences(ContactPreferences preferences)
{
CallUser();
if (preferences is null)
throw new HubException("Contact preferences are required.");
_calls.SetContactPreferences(Context.ConnectionId, preferences);
}
public Task<CallSession> InviteCall(string roomName, string callee) =>
InviteCoreAsync(roomName, callee, CallTransports.WebRtc);