mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-04 19:56:45 +02:00
Fix sonar issues
This commit is contained in:
parent
3c44dfd89f
commit
d63ed51c98
@ -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) {
|
||||
|
||||
@ -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();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user