405 back reload token with synctokens (#436)
* [#405] added syncToken in calendar params and fetch with sync token * [#405] changed reload to work with sync-token * [#405] fixup promise handling, added calendar adding and removing hanlding with refresh * [#405] fixed event expansion calls * [#405 & refactor] added helperfunction to get base event uid + refactored synctoken updates management * [#405] added pMap lib to process event expansion * [#405] added flag for no synctoken / new synctoken
This commit is contained in:
@@ -29,6 +29,7 @@ import UserSearch from "../Attendees/AttendeeSearch";
|
||||
import { CalendarItemList } from "../Calendar/CalendarItemList";
|
||||
import { PeopleSearch, User } from "../Attendees/PeopleSearch";
|
||||
import { createAttendee } from "../../features/User/models/attendee.mapper";
|
||||
import { extractEventBaseUuid } from "../../utils/extractEventBaseUuid";
|
||||
|
||||
export default function SearchBar() {
|
||||
const { t } = useI18n();
|
||||
@@ -38,10 +39,10 @@ export default function SearchBar() {
|
||||
);
|
||||
const userId = useAppSelector((state) => state.user.userData?.openpaasId);
|
||||
const personnalCalendars = userId
|
||||
? calendars.filter((c) => c.id.split("/")[0] === userId)
|
||||
? calendars.filter((c) => extractEventBaseUuid(c.id) === userId)
|
||||
: [];
|
||||
const sharedCalendars = userId
|
||||
? calendars.filter((c) => c.id.split("/")[0] !== userId)
|
||||
? calendars.filter((c) => extractEventBaseUuid(c.id) !== userId)
|
||||
: calendars;
|
||||
|
||||
const [search, setSearch] = useState("");
|
||||
|
||||
Reference in New Issue
Block a user