Fixed Messaging Bug (inversed a if statement)

This commit is contained in:
2026-04-13 22:57:39 -04:00
parent fba86881ec
commit a56e246095
2 changed files with 9 additions and 3 deletions

View File

@@ -264,7 +264,7 @@ public partial class MainPage : ContentPage
if (pyload is null) if (pyload is null)
return; return;
if (pyload.RecipientUsername == _username) if (pyload.RecipientUsername != _username)
return; return;
Console.WriteLine($"[{_username}] received encrypted payload for {pyload.RecipientUsername}"); Console.WriteLine($"[{_username}] received encrypted payload for {pyload.RecipientUsername}");

View File

@@ -1,5 +1,11 @@
using SurrealDb.Net.Models; using SurrealDb.Net.Models;
#region Resharper Stuff
// ReSharper disable ClassNeverInstantiated.Global
// ReSharper disable PropertyCanBeMadeInitOnly.Global
// ReSharper disable InconsistentNaming
#endregion
namespace RelayShared.Rtc; namespace RelayShared.Rtc;
public enum SignalType public enum SignalType
@@ -121,8 +127,8 @@ public sealed class RtcAnswer
public RtcSessionDescription SessionDescription { get; set; } = new(); public RtcSessionDescription SessionDescription { get; set; } = new();
} }
public class DBIceCandidate : Record //TODO: Swap names with DBIceCandidate. public class DBIceCandidate : Record
{ //TODO: Update all Record extensions to be DB*, all communication objects to be Rtc* {
public required string ChannelId { get; set; } public required string ChannelId { get; set; }
public required string Username { get; set; } public required string Username { get; set; }
public required string Candidate { get; set; } public required string Candidate { get; set; }