isSameMessage method

bool isSameMessage(
  1. NIMMessage? other
)

Implementation

bool isSameMessage(NIMMessage? other) {
  if (other != null) {
    if (messageId != null &&
        messageId != '-1' &&
        other.messageId != null &&
        other.messageId != '-1') {
      return messageId == other.messageId;
    } else {
      return uuid == other.uuid;
    }
  }
  return false;
}