Apply strictNullChecks to src/components/views/rooms/* (#10875)

* fix everything except notificationbadge

* unit test ThirdPartyMemberInfo

* fix RoomPreviewBar dm tests

* lint

* test PinnedEventTile
This commit is contained in:
Kerry 2023-05-22 11:53:23 +12:00 committed by GitHub
parent 08c0f332b3
commit 74d30187a4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 326 additions and 17 deletions

View file

@ -165,7 +165,7 @@ export default class ReadReceiptMarker extends React.PureComponent<IProps, IStat
return 0;
}
return info.top + info.parent.getBoundingClientRect().top;
return (info.top ?? 0) + info.parent.getBoundingClientRect().top;
}
private animateMarker(): void {