Add comment

This commit is contained in:
Naveen 2023-06-24 20:10:56 +05:30
parent fe09a937ec
commit 3830e849d6
No known key found for this signature in database
GPG key ID: 0E155DAD31671DA3

View file

@ -30,6 +30,7 @@ fun Event.toUtcAllDayEvent() {
endTS = Formatter.getShiftedUtcTS(endTS)
}
// this is to make sure the repetition ends on the date set when creating the original event
fun Event.maybeAdjustRepeatLimitCount(original: Event, occurrenceTS: Long) {
val hasFixedRepeatCount = original.repeatLimit < 0 && repeatLimit < 0
val repeatLimitUnchanged = original.repeatLimit == repeatLimit