createExtForMessage static method

String createExtForMessage(
  1. V2TimMessage message
)

Implementation

static String createExtForMessage(V2TimMessage message){
  String createJSON(String convID) {
    return "{\"conversationID\": \"$convID\"}";
  }

  String ext = ((message.groupID != null && message.groupID != "")
      ? createJSON("group_${message.groupID}")
      : createJSON("c2c_${message.sender}"));

  return ext;
}