An avatar, one or two

This commit is contained in:
Paul Schneider 2017-01-27 15:32:25 +01:00
commit 4facc560b8
15 changed files with 85 additions and 44 deletions

View file

@ -47,7 +47,7 @@ namespace ZicMoove.ViewModels.EstimateAndBilling
{
get
{
return UserHelpers.Avatar(Client.Avatar);
return UserHelpers.Avatar(Client.UserName);
}
}
public ImageSource SmallAvatar

View file

@ -36,7 +36,7 @@ namespace ZicMoove.ViewModels.Messaging
if (existent != null) {
existent.UserName = item.UserName;
existent.Roles = item.Roles;
existent.Avatar = item.Avatar;
existent.Avatar = item.UserName;
existent.Connections = item.Connections;
}
else Add(item);

View file

@ -51,7 +51,7 @@ namespace ZicMoove.ViewModels.Messaging
// by assigning a server side username to anonymous.
if (string.IsNullOrEmpty(userName))
{
msg.SenderId = $"({cxId})";
msg.SenderId = $"[{cxId}]";
}
Notifs.Add(msg);
if (eventId == "connected")

View file

@ -13,6 +13,7 @@ namespace ZicMoove.ViewModels.UserProfile
using Helpers;
using Model.Auth.Account;
using Pages.UserProfile;
using Settings;
using System.Threading.Tasks;
internal class DashboardViewModel : ViewModel
@ -200,7 +201,7 @@ namespace ZicMoove.ViewModels.UserProfile
newQueriesButtonText = newUserIsPro ?
$"{newQueryCount} demandes valides en cours" :
"Profile professionel non renseigné";
newAvatar = UserHelpers.Avatar(user.Avatar);
newAvatar = UserHelpers.Avatar(user.UserName);
}
SetProperty<bool>(ref haveAnUser, userIsNull, "HaveAnUser");
SetProperty<bool>(ref userIsPro, newUserIsPro, "UserIsPro");

View file

@ -197,7 +197,7 @@ namespace ZicMoove.ViewModels.UserProfile
newQueriesButtonText = newUserIsPro ?
$"{newQueryCount} demandes valides en cours" :
"Profile professionel non renseigné";
newAvatar = UserHelpers.Avatar(user.Avatar);
newAvatar = UserHelpers.Avatar(user.UserName);
}
SetProperty<bool>(ref haveAnUser, newHaveAnUser, "HaveAnUser");
SetProperty<string>(ref performerStatus, newStatusString, "PerformerStatus");