Skip to content

Commit

Permalink
improved comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Velin92 committed Aug 5, 2024
1 parent 10702ce commit 5c34f03
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ElementX/Sources/Screens/RoomScreen/RoomScreenModels.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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<String> = []
// This is used to controler the banner
// This is used to control the banner
var pinnedEventsState = PinnedEventsState()

var shouldShowPinnedEventsBanner: Bool {
Expand Down

0 comments on commit 5c34f03

Please sign in to comment.