Skip to content

Commit

Permalink
Fix photo bug (#92)
Browse files Browse the repository at this point in the history
  • Loading branch information
marlenaklein-msft authored Feb 23, 2024
1 parent eea4064 commit f0501d8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 14 deletions.
1 change: 1 addition & 0 deletions unity/acsShowcase/Assets/Prefabs/Users/MainUser.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ MonoBehaviour:
- {fileID: 2800000, guid: 31c743e644772c44492a5100b330ae6d, type: 3}
- {fileID: 2800000, guid: d2086432f49773e4abf53fc65626554c, type: 3}
pressableButton: {fileID: 0}
defaultIconTexture: {fileID: 2800000, guid: a7c55f177c2da3c48ade207a599e9ddd, type: 3}
--- !u!114 &7152402777604146220
MonoBehaviour:
m_ObjectHideFlags: 0
Expand Down
1 change: 1 addition & 0 deletions unity/acsShowcase/Assets/Scripts/Graph/PhotoGetter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ protected override void OnAuthenticated()
#region Private Functions
private async void UpdateProfilesWorkerAsync()
{
Photo = null;
byte[] data = null;
string token = Token;
if (!string.IsNullOrEmpty(token))
Expand Down
17 changes: 3 additions & 14 deletions unity/acsShowcase/Assets/Scripts/UI/UserObject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ [SerializeField] [Tooltip("The texture image of the presence")]
private List<Texture2D> presences;
[SerializeField] [Tooltip("The pressable button of this user object")]
private PressableButton pressableButton;

[SerializeField] [Tooltip("The default icon texture")]
private Texture defaultIconTexture;

/// <summary>
/// list of background color
/// </summary>
Expand Down Expand Up @@ -98,11 +100,6 @@ public PageType UserObjectPageType
/// </summary>
private PresenceAvailability presenceAvail;


/// <summary>
/// default icon texture
/// </summary>
private Texture defaultIconTexture;

/// <summary>
/// user presence
Expand All @@ -128,14 +125,6 @@ public PresenceAvailability Presence
/// </summary>
public static event Action<UserObject> OnSelectedParticipantCall;

/// <summary>
/// Start
/// </summary>
void Start()
{
defaultIconTexture = profileIcon.texture;
}

/// <summary>
/// copy user object
/// </summary>
Expand Down

0 comments on commit f0501d8

Please sign in to comment.