Conform more code to strictNullChecks
(#10444
* Conform more code to `strictNullChecks` * Fix tests * Fix tests
This commit is contained in:
parent
ba2608ec74
commit
c225b8ec29
29 changed files with 85 additions and 75 deletions
|
@ -71,7 +71,7 @@ export const usePinnedEvents = (room?: Room): string[] => {
|
|||
};
|
||||
|
||||
function getReadPinnedEventIds(room?: Room): Set<string> {
|
||||
return new Set(room.getAccountData(ReadPinsEventId)?.getContent()?.event_ids ?? []);
|
||||
return new Set(room?.getAccountData(ReadPinsEventId)?.getContent()?.event_ids ?? []);
|
||||
}
|
||||
|
||||
export const useReadPinnedEvents = (room?: Room): Set<string> => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue