From 8a289941eb71bdfbfd64a35f842bfcd84f960f75 Mon Sep 17 00:00:00 2001 From: Sorunome Date: Tue, 26 May 2020 06:40:13 +0000 Subject: [PATCH] Fixes profile equality check --- lib/src/utils/profile.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/src/utils/profile.dart b/lib/src/utils/profile.dart index 83ac5aa..fcdec6a 100644 --- a/lib/src/utils/profile.dart +++ b/lib/src/utils/profile.dart @@ -19,5 +19,7 @@ class Profile { @override bool operator ==(dynamic other) => - avatarUrl == other.avatarUrl && displayname == other.displayname; + (other is Profile) && + avatarUrl == other.avatarUrl && + displayname == other.displayname; }