mirror of
https://github.com/Stone-Red-Code/Decho.git
synced 2026-09-04 08:56:14 +02:00
Set default nicknameColor to "#ffffff" and show command message always
This commit is contained in:
@@ -2,7 +2,7 @@ using EchoHub.Core.Models;
|
|||||||
|
|
||||||
namespace Decho.Models;
|
namespace Decho.Models;
|
||||||
|
|
||||||
public sealed class UserModel(string id, string displayName, string? nicknameColor = null, UserStatus status = UserStatus.Online, string? statusMessage = null)
|
public sealed class UserModel(string id, string displayName, string? nicknameColor = "#ffffff", UserStatus status = UserStatus.Online, string? statusMessage = null)
|
||||||
{
|
{
|
||||||
public string Id { get; } = id;
|
public string Id { get; } = id;
|
||||||
|
|
||||||
|
|||||||
@@ -520,7 +520,7 @@ public sealed class MainWindowViewModel : ViewModelBase
|
|||||||
private async Task<string?> HandleCommandAsync(string commandText)
|
private async Task<string?> HandleCommandAsync(string commandText)
|
||||||
{
|
{
|
||||||
CommandResult result = await _commandHandler.HandleAsync(commandText);
|
CommandResult result = await _commandHandler.HandleAsync(commandText);
|
||||||
if (result.Message is not null && !result.IsError)
|
if (result.Message is not null)
|
||||||
{
|
{
|
||||||
Chat.Messages.Add(new MessageViewModel(new MessageModel(
|
Chat.Messages.Add(new MessageViewModel(new MessageModel(
|
||||||
Guid.NewGuid().ToString("N"),
|
Guid.NewGuid().ToString("N"),
|
||||||
|
|||||||
Reference in New Issue
Block a user