2024-04-29 00:17:15 +02:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2019-07-16 12:11:24 +02:00
|
|
|
module MessagerieHelper
|
|
|
|
def show_reply_button(commentaire, connected_user)
|
|
|
|
commentaire.dossier.present? &&
|
|
|
|
commentaire.dossier.messagerie_available? &&
|
|
|
|
commentaire.dossier.user == connected_user &&
|
|
|
|
!commentaire.sent_by?(connected_user) &&
|
|
|
|
commentaire.dossier.commentaires.last == commentaire
|
|
|
|
end
|
|
|
|
end
|