Step 8.5: Move pinned events custom event type
This commit is contained in:
parent
cfbad115c7
commit
f5e6cbafb2
3 changed files with 19 additions and 3 deletions
|
@ -31,6 +31,7 @@ import { useAsyncMemo } from "../../../hooks/useAsyncMemo";
|
|||
import PinnedEventTile from "../rooms/PinnedEventTile";
|
||||
import { useRoomState } from "../../../hooks/useRoomState";
|
||||
import RoomContext, { TimelineRenderingType } from "../../../contexts/RoomContext";
|
||||
import { ReadPinsEventId } from "./types";
|
||||
|
||||
interface IProps {
|
||||
room: Room;
|
||||
|
@ -56,8 +57,6 @@ export const usePinnedEvents = (room: Room): string[] => {
|
|||
return pinnedEvents;
|
||||
};
|
||||
|
||||
export const ReadPinsEventId = "im.vector.room.read_pins";
|
||||
|
||||
export const useReadPinnedEvents = (room: Room): Set<string> => {
|
||||
const [readPinnedEvents, setReadPinnedEvents] = useState<Set<string>>(new Set());
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue