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

@@ -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 {