1
0
mirror of https://github.com/bitwarden/mobile.git synced 2024-11-23 11:45:38 +01: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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)
{