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:
Diffstat (limited to 'app/models/chat_name.rb')
-rw-r--r--app/models/chat_name.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/chat_name.rb b/app/models/chat_name.rb
index d3fbfe3aa55..38e6273bf20 100644
--- a/app/models/chat_name.rb
+++ b/app/models/chat_name.rb
@@ -27,6 +27,6 @@ class ChatName < ApplicationRecord
end
def update_last_used_at?
- last_used_at.nil? || last_used_at > LAST_USED_AT_INTERVAL.ago
+ last_used_at.nil? || last_used_at.before?(LAST_USED_AT_INTERVAL.ago)
end
end