isSameMessage method

bool isSameMessage(
  1. NIMMessage? other
)

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