[Super Group]2.3.0

This commit is contained in:
hrxiang
2022-08-24 11:46:15 +08:00
parent 72111053bd
commit a6aea5496a
9 changed files with 88 additions and 2 deletions

View File

@@ -119,6 +119,16 @@ class GroupInfo {
int get sessionType => groupType == GroupType.general
? ConversationType.group
: ConversationType.superGroup;
@override
bool operator ==(Object other) =>
identical(this, other) ||
other is GroupInfo &&
runtimeType == other.runtimeType &&
groupID == other.groupID;
@override
int get hashCode => groupID.hashCode;
}
/// 群成员信息
@@ -209,12 +219,13 @@ class GroupMembersInfo {
@override
bool operator ==(Object other) =>
identical(this, other) ||
other is GroupMembersInfo &&
other is GroupMembersInfo &&
runtimeType == other.runtimeType &&
groupID == other.groupID &&
userID == other.userID;
@override
int get hashCode => userID.hashCode;
int get hashCode => groupID.hashCode ^ userID.hashCode;
}
/// 群成员角色