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:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-09-28 21:12:54 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-09-28 21:12:54 +0300
commit46c019ae69759f91eb6e71e4aa4dd9b23b136f60 (patch)
treee10adff0692edd28275aa66a3a27a8b15c5fbd0c /app/models/chat_name.rb
parent33d999642a05b1c83c8230cac46086493e7fb368 (diff)
Add latest changes from gitlab-org/gitlab@master
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