class Decidim::Meetings::UpdateMeeting

def update_meeting!

def update_meeting!
  parsed_title = Decidim::ContentProcessor.parse_with_processor(:hashtag, form.title, current_organization: form.current_organization).rewrite
  parsed_description = Decidim::ContentProcessor.parse_with_processor(:hashtag, form.description, current_organization: form.current_organization).rewrite
  Decidim.traceability.update!(
    meeting,
    form.current_user,
    {
      scope: form.scope,
      category: form.category,
      title: { I18n.locale => parsed_title },
      description: { I18n.locale => parsed_description },
      end_time: form.end_time,
      start_time: form.start_time,
      address: form.address,
      latitude: form.latitude,
      longitude: form.longitude,
      location: { I18n.locale => form.location },
      location_hints: { I18n.locale => form.location_hints },
      author: form.current_user,
      decidim_user_group_id: form.user_group_id
    },
    visibility: "public-only"
  )
end