An avatar, one or two
This commit is contained in:
parent
05e5970bef
commit
4facc560b8
15 changed files with 85 additions and 44 deletions
|
|
@ -47,7 +47,7 @@ namespace ZicMoove.ViewModels.EstimateAndBilling
|
|||
{
|
||||
get
|
||||
{
|
||||
return UserHelpers.Avatar(Client.Avatar);
|
||||
return UserHelpers.Avatar(Client.UserName);
|
||||
}
|
||||
}
|
||||
public ImageSource SmallAvatar
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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")
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue