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; }