getGroupChatID static method

String getGroupChatID(
  1. String? logInUserId,
  2. String? peerId
)

Implementation

static String getGroupChatID(String? logInUserId, String? peerId) {
  if (logInUserId.hashCode <= peerId.hashCode) {
    return '$logInUserId-$peerId';
  } else {
    return '$peerId-$logInUserId';
  }
}