1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-16 00:03:22 +00:00

added missing id check to obj comparison (#2154)

This commit is contained in:
mp-bw
2022-10-27 12:09:33 -04:00
committed by GitHub
parent 4fcb063190
commit 77d8afcfe6

View File

@@ -23,13 +23,13 @@ namespace Bit.App.Controls
if (obj is AvatarImageSource avatar)
{
return avatar._text == _text;
return avatar._id == _id && avatar._text == _text;
}
return base.Equals(obj);
}
public override int GetHashCode() => _text?.GetHashCode() ?? -1;
public override int GetHashCode() => _id?.GetHashCode() ?? _text?.GetHashCode() ?? -1;
public AvatarImageSource(string userId = null, string name = null, string email = null)
{