Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit dbea205

Browse files
committed
MSC2545StickerPicker: add some TODOs
1 parent 3da3252 commit dbea205

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/components/views/rooms/MSC2545StickerPicker.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,13 +92,15 @@ export const MSC2545StickerPicker: React.FC<{
9292
if (!isStickerPickerOpen) return null;
9393

9494
const evt = cli.getAccountData(USER_PACK_ROOMS_EVENT_TYPE);
95+
// TODO: check if null
9596
const evtContent = evt.event.content as { rooms: { [roomId: string]: { [packName: string]: {} } } };
9697

9798
const packs = Object.keys(evtContent.rooms)
9899
.map(roomId => {
99100
const room = cli.getRoom(roomId);
100101
return Object.keys(evtContent.rooms[roomId])
101102
.map(name => {
103+
// TODO: check if null
102104
const pack = room.currentState.getStateEvents(PACK_ROOM_EVENT_TYPE, name)
103105
.event.content as I2545Pack;
104106
return { room, pack, packName: name };

0 commit comments

Comments
 (0)