fix: Fix fetching user events & note a bug
This commit is contained in:
parent
ce1374bee4
commit
e8f7bf372a
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue