mirror of
https://github.com/Caraxi/mare.server.git
synced 2025-12-12 22:17:22 +01:00
do not send alias when alias is empty but send null instead
This commit is contained in:
parent
cdba293aa1
commit
96e89437c0
1 changed files with 1 additions and 1 deletions
|
|
@ -71,7 +71,7 @@ public partial class MareHub : Hub<IMareHub>, IMareHub
|
||||||
await Clients.Caller.Client_ReceiveServerMessage(MessageSeverity.Information, "Welcome to Mare Synchronos \"" + _shardName + "\", Current Online Users: " + _systemInfoService.SystemInfoDto.OnlineUsers).ConfigureAwait(false);
|
await Clients.Caller.Client_ReceiveServerMessage(MessageSeverity.Information, "Welcome to Mare Synchronos \"" + _shardName + "\", Current Online Users: " + _systemInfoService.SystemInfoDto.OnlineUsers).ConfigureAwait(false);
|
||||||
await SendOnlineToAllPairedUsers().ConfigureAwait(false);
|
await SendOnlineToAllPairedUsers().ConfigureAwait(false);
|
||||||
|
|
||||||
return new ConnectionDto(new UserData(dbUser.UID, dbUser.Alias))
|
return new ConnectionDto(new UserData(dbUser.UID, string.IsNullOrWhiteSpace(dbUser.Alias) ? null : dbUser.Alias))
|
||||||
{
|
{
|
||||||
ServerVersion = IMareHub.ApiVersion,
|
ServerVersion = IMareHub.ApiVersion,
|
||||||
IsAdmin = dbUser.IsAdmin,
|
IsAdmin = dbUser.IsAdmin,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue