referenceMessageState method

RCIMIWReferenceMessageStatus referenceMessageState(
  1. String? messageUId
)

Implementation

RCIMIWReferenceMessageStatus referenceMessageState(String? messageUId) {
  if (messageUId == null || messageUId.isEmpty) {
    return RCIMIWReferenceMessageStatus.defaultValue;
  }
  final local = _referenceMessageStates[messageUId] ??
      RCIMIWReferenceMessageStatus.defaultValue;
  if (!_conversationInitialized) return local;
  final shared = engineProvider.referenceTerminalStateFor(
    conversationType: _con.conversationType,
    targetId: _con.targetId,
    channelId: _con.channelId,
    messageUId: messageUId,
  );
  return local.index >= shared.index ? local : shared;
}