fixes GMaps usage & Command creation

This commit is contained in:
2019-09-01 01:31:55 +01:00
parent cec790b71e
commit 5a3fdada8f
12 changed files with 194 additions and 271 deletions

View File

@ -263,7 +263,7 @@ namespace Yavsc.Services
public IEnumerable<string> GetConnexionIds(string userName)
{
return ChatCxIds[userName];
return ChatCxIds.ContainsKey(userName) ? ChatCxIds[userName] : null;
}
/// <summary>

View File

@ -111,8 +111,8 @@ namespace Yavsc.Services
result.message_id = mailSent.MessageId;
response.success++;
}
var cxids = _cxManager.GetConnexionIds(user.UserName).ToArray();
if (cxids.Length == 0)
var cxids = _cxManager.GetConnexionIds(user.UserName);
if (cxids == null)
{
_logger.LogDebug($"no cx to {user.UserName} <{user.Email}> ");
}