From d014f3bfa6168a644fe46ad7ce294c69f24851d0 Mon Sep 17 00:00:00 2001 From: Paul Schneider Date: Sun, 6 Nov 2016 17:48:08 +0100 Subject: [PATCH] cleans the code --- BookAStar/BookAStar/Pages/ChatPage.xaml.cs | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) 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(