Provide RoomViewStore from the RoomContext (#30980)
* Pass roomViewStore to the RoomView and add to the RoomContext. * lint * lint * Make constants more DRY * Make constants more DRY * Commend non-null assertion on roomViewStore property of the RoomContext * Update tsdocs.
This commit is contained in:
@@ -75,6 +75,9 @@ const RoomContext = createContext<
|
||||
promptAskToJoin: false,
|
||||
viewRoomOpts: { buttons: [] },
|
||||
isRoomEncrypted: null,
|
||||
// roomViewStore should always be present as it is passed to RoomView constructor.
|
||||
// In time when we migrate the RoomView to MVVM it will cease to exist(become a ViewModel).
|
||||
roomViewStore: undefined!,
|
||||
});
|
||||
RoomContext.displayName = "RoomContext";
|
||||
export default RoomContext;
|
||||
|
||||
Reference in New Issue
Block a user