setDefaultMessageNotifications method

Future<void> setDefaultMessageNotifications(
  1. DefaultMessageNotification value, {
  2. String? reason,
})

Set the default message notifications for the server.

await server.setDefaultMessageNotifications(DefaultMessageNotification.allMessages, reason: 'Testing');

Implementation

Future<void> setDefaultMessageNotifications(DefaultMessageNotification value,
    {String? reason}) async {
  await _datastore.server
      .update(id.value, {'default_message_notifications': value.value}, reason);
}