csharp-mvc: removed the ability to add mentions for anonymous users

This commit is contained in:
metoou
2021-05-21 17:28:20 +03:00
parent 50b9aa4296
commit 304d628dbe
2 changed files with 2 additions and 3 deletions

View File

@ -47,7 +47,6 @@ namespace OnlineEditorsExampleMVC.Helpers
public static List<Dictionary<string, object>> getUsersForMentions(string id)
{
List<Dictionary<string, object>> usersData = new List<Dictionary<string, object>>();
foreach (User user in users)
{
if (!user.id.Equals(id) && user.name != null && user.email != null)
@ -55,7 +54,7 @@ namespace OnlineEditorsExampleMVC.Helpers
usersData.Add(new Dictionary<string, object>()
{
{"name", user.name },
{"email", user.email },
{"email", user.email }
});
}
}