diff --git a/RelayClient/MainPage.xaml.cs b/RelayClient/MainPage.xaml.cs index 94530a4..c4da6d7 100644 --- a/RelayClient/MainPage.xaml.cs +++ b/RelayClient/MainPage.xaml.cs @@ -264,7 +264,7 @@ public partial class MainPage : ContentPage if (pyload is null) return; - if (pyload.RecipientUsername == _username) + if (pyload.RecipientUsername != _username) return; Console.WriteLine($"[{_username}] received encrypted payload for {pyload.RecipientUsername}"); diff --git a/RelayShared/Rtc/RtcModels.cs b/RelayShared/Rtc/RtcModels.cs index 1679bdd..63f96eb 100644 --- a/RelayShared/Rtc/RtcModels.cs +++ b/RelayShared/Rtc/RtcModels.cs @@ -1,5 +1,11 @@ using SurrealDb.Net.Models; +#region Resharper Stuff +// ReSharper disable ClassNeverInstantiated.Global +// ReSharper disable PropertyCanBeMadeInitOnly.Global +// ReSharper disable InconsistentNaming +#endregion + namespace RelayShared.Rtc; public enum SignalType @@ -121,8 +127,8 @@ public sealed class RtcAnswer public RtcSessionDescription SessionDescription { get; set; } = new(); } -public class DBIceCandidate : Record //TODO: Swap names with DBIceCandidate. -{ //TODO: Update all Record extensions to be DB*, all communication objects to be Rtc* +public class DBIceCandidate : Record +{ public required string ChannelId { get; set; } public required string Username { get; set; } public required string Candidate { get; set; }