Merge pull request #6070 from betagouv/main

2021-04-07-03
This commit is contained in:
Paul Chavard 2021-04-07 18:58:14 +01:00 committed by GitHub
commit e7318a99f3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -172,9 +172,9 @@ module Instructeurs
if @commentaire.save
@commentaire.dossier.update!(last_commentaire_updated_at: Time.zone.now)
if !current_instructeur.follow?(dossier)
current_instructeur.follow(dossier)
end
current_instructeur.follow(dossier)
# FIXME
mark_messagerie_as_read
flash.notice = "Message envoyé"
redirect_to messagerie_instructeur_dossier_path(procedure, dossier)
else