diff --git a/QtCNETAPI/Services/GatewayService/GatewayService.cs b/QtCNETAPI/Services/GatewayService/GatewayService.cs
index 4616d73..8410ed9 100644
--- a/QtCNETAPI/Services/GatewayService/GatewayService.cs
+++ b/QtCNETAPI/Services/GatewayService/GatewayService.cs
@@ -146,15 +146,6 @@ namespace QtCNETAPI.Services.GatewayService
}
}
- public async Task RefreshContactsForUser(UserInformationDto user)
- {
- await _apiService.RefreshSessionIfInvalid();
-
- if (HubConnection == null || HubConnection.State != HubConnectionState.Connected) throw new InvalidOperationException("Function was called before connection was made.");
-
- await HubConnection.SendAsync("RefreshContactsListOnUser", user, _apiService.CurrentUser);
- }
-
public async Task PostMessageAsync(Message message)
{
await _apiService.RefreshSessionIfInvalid();
diff --git a/QtCNETAPI/Services/GatewayService/IGatewayService.cs b/QtCNETAPI/Services/GatewayService/IGatewayService.cs
index 6c3ddc2..cacc8c7 100644
--- a/QtCNETAPI/Services/GatewayService/IGatewayService.cs
+++ b/QtCNETAPI/Services/GatewayService/IGatewayService.cs
@@ -85,14 +85,6 @@ namespace QtCNETAPI.Services.GatewayService
///
public Task SendDirectMessageAsync(UserInformationDto user, Message message);
- ///
- /// Refreshes Contacts List For A Specified User
- ///
- /// The User You Wish To Refresh
- /// Yourself
- ///
- public Task RefreshContactsForUser(UserInformationDto user);
-
///
/// Updates The Status For The Current User
///
diff --git a/qtc-net-client-2/Forms/Profile.cs b/qtc-net-client-2/Forms/Profile.cs
index 88170d5..885f965 100644
--- a/qtc-net-client-2/Forms/Profile.cs
+++ b/qtc-net-client-2/Forms/Profile.cs
@@ -153,8 +153,6 @@ namespace qtc_net_client_2.Forms
btnAddContact.Enabled = false;
using (var ms = new MemoryStream(Resources.RequestSentIcon)) { btnAddContact.Image = Image.FromStream(ms); ms.Dispose(); }
btnCancelRequest.Visible = true;
-
- await _gatewayService.RefreshContactsForUser(_userInformationDto);
}
}
@@ -166,8 +164,6 @@ namespace qtc_net_client_2.Forms
btnAddContact.Image = Resources.AddContactIcon;
btnAddContact.Click += btnAddContact_Click_Add;
btnMessage.Visible = false;
-
- await _gatewayService.RefreshContactsForUser(_userInformationDto);
}
}
@@ -183,8 +179,6 @@ namespace qtc_net_client_2.Forms
btnAddContact.Image = Resources.RemoveContactIcon;
btnAddContact.Click += btnAddContact_Click_Remove;
if (_userInformationDto.Status >= 1) btnMessage.Visible = true;
-
- await _gatewayService.RefreshContactsForUser(_userInformationDto);
}
}
@@ -199,8 +193,6 @@ namespace qtc_net_client_2.Forms
btnAddContact.Visible = true;
btnAddContact.Image = Resources.AddContactIcon;
btnAddContact.Click += btnAddContact_Click_Add;
-
- await _gatewayService.RefreshContactsForUser(_userInformationDto);
}
}
@@ -214,8 +206,6 @@ namespace qtc_net_client_2.Forms
btnAddContact.Click += btnAddContact_Click_Add;
btnCancelRequest.Visible = false;
-
- await _gatewayService.RefreshContactsForUser(_userInformationDto);
}
}