diff --git a/BookAStar/BookAStar/BookAStar.csproj b/BookAStar/BookAStar/BookAStar.csproj
index 898fa16d..9b372dc5 100644
--- a/BookAStar/BookAStar/BookAStar.csproj
+++ b/BookAStar/BookAStar/BookAStar.csproj
@@ -65,9 +65,6 @@
-
- PrivateChatPage.xaml
-
@@ -507,12 +504,6 @@
YavscLib
-
-
- MSBuild:UpdateDesignTimeXaml
- Designer
-
-
diff --git a/BookAStar/BookAStar/Model/Social/Chat/ChatMessage.cs b/BookAStar/BookAStar/Model/Social/Chat/ChatMessage.cs
index 37153a36..8c12f63a 100644
--- a/BookAStar/BookAStar/Model/Social/Chat/ChatMessage.cs
+++ b/BookAStar/BookAStar/Model/Social/Chat/ChatMessage.cs
@@ -11,10 +11,5 @@ namespace BookAStar.Model.Social.Messaging
public string SenderId { get; set; }
public string Message { get; set; }
public bool Read { get; set; }
- [JsonIgnore]
- public bool FromMe { get
- {
- return App.ChatHubConnection?.ConnectionId == SenderId;
- } }
}
}
diff --git a/BookAStar/BookAStar/Pages/Chat/PrivateChatPage.xaml b/BookAStar/BookAStar/Pages/Chat/PrivateChatPage.xaml
deleted file mode 100644
index 8fda0eb7..00000000
--- a/BookAStar/BookAStar/Pages/Chat/PrivateChatPage.xaml
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
-
\ No newline at end of file
diff --git a/BookAStar/BookAStar/Pages/Chat/PrivateChatPage.xaml.cs b/BookAStar/BookAStar/Pages/Chat/PrivateChatPage.xaml.cs
deleted file mode 100644
index 45652bf1..00000000
--- a/BookAStar/BookAStar/Pages/Chat/PrivateChatPage.xaml.cs
+++ /dev/null
@@ -1,23 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-using Xamarin.Forms;
-
-namespace BookAStar.Pages.Chat
-{
- public partial class PrivateChatPage : ContentPage
- {
- public PrivateChatPage()
- {
- InitializeComponent();
- /*
- ToolbarItems.Add(new ToolbarItem(
- name: "...",
- icon: null,
- activated: () => { }));*/
- }
- }
-}
diff --git a/BookAStar/BookAStar/ViewModels/Messaging/ChatUserCollection.cs b/BookAStar/BookAStar/ViewModels/Messaging/ChatUserCollection.cs
index 227a6e8e..88c2de4c 100644
--- a/BookAStar/BookAStar/ViewModels/Messaging/ChatUserCollection.cs
+++ b/BookAStar/BookAStar/ViewModels/Messaging/ChatUserCollection.cs
@@ -19,9 +19,7 @@ namespace BookAStar.ViewModels.Messaging
}
public void OnPrivateMessage(ChatMessage msg)
{
- var sender = this.FirstOrDefault(user => user.Connections.Any(
- cx => cx.ConnectionId == msg.SenderId
- ));
+ var sender = this.FirstOrDefault(user => user.UserName == msg.SenderId);
if (sender != null)
{
sender.PrivateMessages.Add(msg);