From 5c34f0344285a2eaa7d69e2dc84652e87fa65b72 Mon Sep 17 00:00:00 2001 From: Mauro Romito Date: Mon, 5 Aug 2024 14:08:30 +0200 Subject: [PATCH] improved comments --- ElementX/Sources/Screens/RoomScreen/RoomScreenModels.swift | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ElementX/Sources/Screens/RoomScreen/RoomScreenModels.swift b/ElementX/Sources/Screens/RoomScreen/RoomScreenModels.swift index c1d12bcbcd..77d9bcc479 100644 --- a/ElementX/Sources/Screens/RoomScreen/RoomScreenModels.swift +++ b/ElementX/Sources/Screens/RoomScreen/RoomScreenModels.swift @@ -172,9 +172,10 @@ struct RoomScreenViewState: BindableState { var isPinningEnabled = false var lastScrollDirection: ScrollDirection? - // The `pinnedEventIDs` is used only to determine if an item can be pinned or not since it does not depend on the pinned events timeline, but on the room info update which is faster + // The `pinnedEventIDs` are used only to determine if an item is already pinned or not. + // It's updated from the room info, so it's faster than using the timeline var pinnedEventIDs: Set = [] - // This is used to controler the banner + // This is used to control the banner var pinnedEventsState = PinnedEventsState() var shouldShowPinnedEventsBanner: Bool {