Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2017-03-16 03:14:58 +0300
committerLuke "Jared" Bennett <lbennett@gitlab.com>2017-04-05 19:44:14 +0300
commitf6f6aaf593dc40c79b8e3536f5e2821c96b9dcd3 (patch)
tree2291c4c92889f11e1bdbabe640205debb1e88029 /app/models/discussion.rb
parent76aa0bedd7ed3aaaeab9402b78261917df66de10 (diff)
Better notification emails for notes and (diff) discussions
Diffstat (limited to 'app/models/discussion.rb')
-rw-r--r--app/models/discussion.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/discussion.rb b/app/models/discussion.rb
index 314aea2c63a..8ab9031e42c 100644
--- a/app/models/discussion.rb
+++ b/app/models/discussion.rb
@@ -87,6 +87,10 @@ class Discussion
false
end
+ def new_discussion?
+ notes.length == 1
+ end
+
def potentially_resolvable?
first_note.for_merge_request?
end