aaand its fucked lol

This commit is contained in:
Alan Moon 2025-12-11 16:37:08 -08:00
parent 2bfbf7b204
commit e06a1d9eb4
2 changed files with 7 additions and 7 deletions

View File

@ -25,7 +25,6 @@ namespace qtcnet_client.Factories
Bitmap? img2 = null; Bitmap? img2 = null;
Bitmap img3 = Resources.OfflineIcon; Bitmap img3 = Resources.OfflineIcon;
// get user profile image
var _pfpRes = await _apiService.GetUserProfilePic(userId); var _pfpRes = await _apiService.GetUserProfilePic(userId);
if (_pfpRes.Success && _pfpRes.Data != null) if (_pfpRes.Success && _pfpRes.Data != null)
{ {
@ -43,7 +42,7 @@ namespace qtcnet_client.Factories
using var _httpRes = await _http.GetAsync(_storeRes.Data.AssetUrl); using var _httpRes = await _http.GetAsync(_storeRes.Data.AssetUrl);
if (_httpRes.IsSuccessStatusCode) if (_httpRes.IsSuccessStatusCode)
{ {
var _imgByes = await _httpRes.Content.ReadAsByteArrayAsync(); var _imgByes = _httpRes.Content.ReadAsByteArrayAsync().GetAwaiter().GetResult();
using var ms = new MemoryStream(_imgByes); using var ms = new MemoryStream(_imgByes);
img2 = (Bitmap?)Image.FromStream(ms); img2 = (Bitmap?)Image.FromStream(ms);
} }

View File

@ -555,6 +555,7 @@ namespace qtcnet_client
else else
{ {
KryptonMessageBox.Show(res.Message, "Login Error", KryptonMessageBoxButtons.OK, KryptonMessageBoxIcon.Error); KryptonMessageBox.Show(res.Message, "Login Error", KryptonMessageBoxButtons.OK, KryptonMessageBoxIcon.Error);
LoginControl?.ToggleControls(true);
} }
} }
else else
@ -1047,7 +1048,7 @@ namespace qtcnet_client
{ {
case Contact.ContactStatus.AwaitingApprovalFromSelf: case Contact.ContactStatus.AwaitingApprovalFromSelf:
ctrl.Username = $"{user.Data.Username} [Contact Request]"; ctrl.Username = $"{user.Data.Username} [Contact Request]";
//AudioService.PlaySoundEffect("sndContactRequest"); _audioService.PlaySoundEffect("sndContactRequest");
break; break;
case Contact.ContactStatus.Accepted: case Contact.ContactStatus.Accepted:
ctrl.Username = user.Data.Username; ctrl.Username = user.Data.Username;