This commit is contained in:
mmrbnjd
2025-08-23 23:11:02 +03:30
parent ca46987be9
commit c7192e964e
2 changed files with 19 additions and 2 deletions

View File

@@ -15,6 +15,8 @@
@inject ILocalStorageService localStorageService;
@inject HttpClient _Http;
@inject NavigationManager nav
@implements IAsyncDisposable
<ConfirmDialog @ref="dialog" />
<Modal @ref="modal" IsVerticallyCentered="true" IsScrollable="true" />
<PageTitle>گفتمان</PageTitle>
@@ -782,7 +784,14 @@
SelectedImagePreview = null;
return Task.CompletedTask;
}
public async ValueTask DisposeAsync()
{
if (hubConnection is not null)
{
await hubConnection.StopAsync();
await hubConnection.DisposeAsync();
}
}
}
<style>

View File

@@ -13,7 +13,7 @@
{
<PageTitle>گفتگو با @CompanyInfo?.FullName</PageTitle>
}
@implements IAsyncDisposable
@inject NavigationManager NavigationManager
@inject ChatService ChatService
@inject ILocalStorageService localStorageService;
@@ -727,6 +727,14 @@
}
return $"image_{DateTimeOffset.Now.ToUnixTimeSeconds()}{ext}";
}
public async ValueTask DisposeAsync()
{
if (hubConnection is not null)
{
await hubConnection.StopAsync();
await hubConnection.DisposeAsync();
}
}
}
<style>
.chat-bubble {