Fix sonar issues

This commit is contained in:
David Baker 2026-04-17 17:44:28 +01:00
parent 3c44dfd89f
commit d63ed51c98
2 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@ export function userStatusTextWithinMaxLength(text: string): boolean {
export function useUserStatus(userId: string | undefined): UserStatus | undefined {
const isEnabled = useFeatureEnabled("feature_user_status");
const matrixClient = useMatrixClientContext();
const [rawUserStatus, setRawUserStatus] = useState<unknown | undefined>();
const [rawUserStatus, setRawUserStatus] = useState<unknown>();
useTypedEventEmitter(matrixClient, ClientEvent.UserProfileUpdate, (syncedUserId, syncProfile) => {
if (syncedUserId !== userId) {

View File

@ -47,7 +47,7 @@ export default class ServerSupportUnstableFeatureController extends MatrixClient
super();
}
public async onChange(): Promise<void> {
public onChange(): void {
if (this.forceReload) {
PlatformPeg.get()?.reload();
}