Merge pull request #6068 from tchak/fix-notifications

Fix notifications
This commit is contained in:
Paul Chavard 2021-04-07 18:56:43 +01:00 committed by GitHub
commit 894f92ceb3
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