diff --git a/BookAStar/BookAStar/Pages/ChatPage.xaml.cs b/BookAStar/BookAStar/Pages/ChatPage.xaml.cs index 920fbe92..3d4625ad 100644 --- a/BookAStar/BookAStar/Pages/ChatPage.xaml.cs +++ b/BookAStar/BookAStar/Pages/ChatPage.xaml.cs @@ -48,6 +48,7 @@ namespace BookAStar.Pages if (string.IsNullOrEmpty(user.ChatHubConnectionId)) return; IsBusy = true; try + { await App.ChatHubProxy.Invoke("SendPV", user.ChatHubConnectionId, pvEntry.Text); pvEntry.Text = null; @@ -60,14 +61,7 @@ namespace BookAStar.Pages }; } - - private void ReconnectButton_Clicked(object sender, EventArgs e) - { - App.ChatHubConnection.Stop(); - App.ChatHubConnection.Start(); - } - - + private void ChatHubConnection_StateChanged(StateChange obj) { Xamarin.Forms.Device.BeginInvokeOnMainThread(