mirror of
https://github.com/Stone-Red-Code/EchoHub.git
synced 2026-09-04 09:06:07 +02:00
feat: add test sound command and enable notifications by default
This commit is contained in:
@@ -347,6 +347,11 @@ public sealed class AppOrchestrator : IDisposable
|
||||
await _apiClient!.NukeChannelAsync(channel);
|
||||
};
|
||||
|
||||
_commandHandler.OnTestSound += async () =>
|
||||
{
|
||||
await _notificationSound.PlayTestAsync();
|
||||
};
|
||||
|
||||
_commandHandler.OnQuit += () =>
|
||||
{
|
||||
InvokeUI(() => _app.RequestStop());
|
||||
@@ -788,7 +793,6 @@ public sealed class AppOrchestrator : IDisposable
|
||||
InvokeUI(() => _mainWindow.AddMessage(message));
|
||||
|
||||
if (!string.IsNullOrEmpty(_currentUsername)
|
||||
&& !message.SenderUsername.Equals(_currentUsername, StringComparison.OrdinalIgnoreCase)
|
||||
&& message.Content.Contains($"@{_currentUsername}", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
_ = _notificationSound.PlayAsync();
|
||||
|
||||
Reference in New Issue
Block a user