insert method

Future<int> insert(
  1. Thread thread
)

Implementation

Future<int> insert(Thread thread) async {
  String? currentUid = SpUtil.getString(BytedeskConstants.VISITOR_UID);
  // FIXME: 暂不支持web
  if (BytedeskUtils.isWeb) {
    return 0;
  }
  // debugPrint('insert avatar:' + thread.avatar + ' conten:' + thread.content + ' timestamp:' + thread.timestamp);
  return await database!.insert(tableThread!, thread.toMap(currentUid!));
}