diff options
Diffstat (limited to 'models')
-rw-r--r-- | models/issues/comment.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/models/issues/comment.go b/models/issues/comment.go index 8e06838f73..f2a3cb7b02 100644 --- a/models/issues/comment.go +++ b/models/issues/comment.go @@ -183,6 +183,14 @@ func (t CommentType) HasAttachmentSupport() bool { return false } +func (t CommentType) HasMailReplySupport() bool { + switch t { + case CommentTypeComment, CommentTypeCode, CommentTypeReview, CommentTypeDismissReview, CommentTypeReopen, CommentTypeClose, CommentTypeMergePull, CommentTypeAssignees: + return true + } + return false +} + // RoleInRepo presents the user's participation in the repo type RoleInRepo string |