isSameMessage method
Implementation
bool isSameMessage(NIMMessage? other) {
if (other != null) {
if (messageServerId != null &&
messageServerId != '-1' &&
other.messageServerId != null &&
other.messageServerId != '-1') {
return messageServerId == other.messageServerId;
} else {
return messageClientId == other.messageClientId;
}
}
return false;
}