setDefaultAutoArchiveDuration method

Future<void> setDefaultAutoArchiveDuration(
  1. int defaultAutoArchiveDuration,
  2. String? reason
)

Implementation

Future<void> setDefaultAutoArchiveDuration(
    int defaultAutoArchiveDuration, String? reason) async {
  await dataStoreChannel.updateChannel(
    id: id,
    reason: reason,
    payload: {'default_auto_archive_duration': defaultAutoArchiveDuration},
  );
}