From d83100e3a033e9c2a940a1330efad5d1f5043423 Mon Sep 17 00:00:00 2001 From: ryanzhao Date: Wed, 22 Jun 2022 13:56:32 +1000 Subject: [PATCH] add comments --- Session/Conversations/ConversationVC+Interaction.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Session/Conversations/ConversationVC+Interaction.swift b/Session/Conversations/ConversationVC+Interaction.swift index a4869382f..98158a46e 100644 --- a/Session/Conversations/ConversationVC+Interaction.swift +++ b/Session/Conversations/ConversationVC+Interaction.swift @@ -868,7 +868,7 @@ extension ConversationVC : InputViewDelegate, MessageCellDelegate, ContextMenuAc let firstTimestamp = General.Cache.recentReactionTimestamps.wrappedValue.first! if sentTimestamp - firstTimestamp < 60 * 1000 { General.Cache.recentReactionTimestamps.mutate{ $0.removeLast() } - return + return // Reach the limit 20 reacts per 60s } else { General.Cache.recentReactionTimestamps.mutate{ $0.removeFirst() } }