fix: Fix fetching user events & note a bug

This commit is contained in:
Peter Vacho 2025-01-01 19:29:55 +01:00
parent ce1374bee4
commit e8f7bf372a
Signed by: school
GPG key ID: 8CFC3837052871B4

View file

@ -85,15 +85,17 @@ class CalendarActivity : AppCompatActivity() {
return emptyMap()
}
// BUG: Events that last longer than a month will not show
// up in the following month due to the startFrom filter here.
val userEvents = RetrofitClient.eventsService.userEvents(
userId = userId,
startFrom = startFrom,
endTo = endTo
startTo = endTo
)
val invitedEvents = RetrofitClient.eventsService.userEventsInvited(
userId = userId,
startFrom = startFrom,
endTo = endTo
startTo = endTo
)
val allEvents = userEvents + invitedEvents