mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-24 18:59:17 +00:00
Conform more of the codebase to strict typescript (#10841)
This commit is contained in:
committed by
GitHub
parent
af78a5a2f5
commit
277a3c0146
@@ -42,8 +42,12 @@ export class RoomScrollStateStore {
|
||||
return this.scrollStateMap.get(roomId);
|
||||
}
|
||||
|
||||
public setScrollState(roomId: string, scrollState: ScrollState): void {
|
||||
this.scrollStateMap.set(roomId, scrollState);
|
||||
public setScrollState(roomId: string, scrollState: ScrollState | null): void {
|
||||
if (scrollState === null) {
|
||||
this.scrollStateMap.delete(roomId);
|
||||
} else {
|
||||
this.scrollStateMap.set(roomId, scrollState);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user