deleteWithChannel method

Future<int> deleteWithChannel(
  1. String channelId,
  2. int channelType
)

Implementation

Future<int> deleteWithChannel(String channelId, int channelType) async {
  if (WKDBHelper.shared.getDB() == null) {
    return 0;
  }
  var map = <String, Object>{};
  map['is_deleted'] = 1;
  return await WKDBHelper.shared.getDB()!.update(WKDBConst.tableMessage, map,
      where: "channel_id=? and channel_type=?",
      whereArgs: [channelId, channelType]);
}