add comments

This commit is contained in:
ryanzhao 2022-06-22 13:56:32 +10:00
parent 4934714eae
commit d83100e3a0

View file

@ -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() }
}