mirror of
https://github.com/Govor-team/Govor.git
synced 2026-07-21 19:54:55 +00:00
PrivateChatsRepositoryTests
This commit is contained in:
@@ -6,4 +6,12 @@ public class PrivateChat
|
||||
public Guid UserAId { get; set; }
|
||||
public Guid UserBId { get; set; }
|
||||
public List<Message> Messages { get; set; } = new List<Message>();
|
||||
|
||||
public override bool Equals(object? obj)
|
||||
{
|
||||
PrivateChat other = obj as PrivateChat;
|
||||
return Id == other.Id &&
|
||||
UserAId == other.UserAId &&
|
||||
UserBId == other.UserBId;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user