Cache frequently used settings values in RoomContext
Signed-off-by: Robin Townsend <robin@robin.town>
This commit is contained in:
@@ -31,7 +31,6 @@ const RoomContext = createContext<IState>({
|
||||
canPeek: false,
|
||||
showApps: false,
|
||||
isPeeking: false,
|
||||
showReadReceipts: true,
|
||||
showRightPanel: true,
|
||||
joining: false,
|
||||
atEndOfLiveTimeline: true,
|
||||
@@ -41,6 +40,11 @@ const RoomContext = createContext<IState>({
|
||||
canReact: false,
|
||||
canReply: false,
|
||||
layout: Layout.Group,
|
||||
showReadReceipts: true,
|
||||
showRedactions: true,
|
||||
showJoinLeaves: true,
|
||||
showAvatarChanges: true,
|
||||
showDisplaynameChanges: true,
|
||||
matrixClientIsReady: false,
|
||||
dragCounter: 0,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user