Enforce chat contact preferences

Filter video calls and private messages per connection and prepare mode-aware call signaling. Audio-only media remains unimplemented.

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

View file

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