Upgrade
This commit is contained in:
@@ -87,4 +87,14 @@ class ConversationInfo {
|
||||
bool get isGroupChat => conversationType == ConversationType.group_chat;
|
||||
|
||||
bool get isTop => isPinned == 1;
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) =>
|
||||
identical(this, other) ||
|
||||
other is ConversationInfo &&
|
||||
runtimeType == other.runtimeType &&
|
||||
conversationID == other.conversationID;
|
||||
|
||||
@override
|
||||
int get hashCode => conversationID.hashCode;
|
||||
}
|
||||
|
||||
@@ -153,17 +153,14 @@ class Message {
|
||||
}
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
if (other is Message) {
|
||||
return other._id == _id;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
bool operator ==(Object other) =>
|
||||
identical(this, other) ||
|
||||
other is Message &&
|
||||
runtimeType == other.runtimeType &&
|
||||
clientMsgID == other.clientMsgID;
|
||||
|
||||
@override
|
||||
int get hashCode => super.hashCode;
|
||||
|
||||
String? get _id => clientMsgID;
|
||||
int get hashCode => clientMsgID.hashCode;
|
||||
}
|
||||
|
||||
class PictureElem {
|
||||
|
||||
Reference in New Issue
Block a user