d0c266d4a1
When previewing a room, we normally do not have a Room object. Currently, when the RoomPreviewBar is instantiated without a room, it doesn't raise the PreviewRoomNotLoggedIn and JoinFromRoomPreview module lifecycle events, meaning that modules are unable to intercept previews of non-peekable rooms. To fix this, make sure that we pass the room ID into RoomPreviewBar irrespective of whether we have a Room object, and use it to raise the module lifecycle events. Signed-off-by: Mikhail Aheichyk <mikhail.aheichyk@nordeck.net> |
||
---|---|---|
.. | ||
__snapshots__ | ||
NotificationBadge | ||
wysiwyg_composer | ||
BasicMessageComposer-test.tsx | ||
DecryptionFailureBar-test.tsx | ||
EventTile-test.tsx | ||
MemberList-test.tsx | ||
MessageComposer-test.tsx | ||
MessageComposerButtons-test.tsx | ||
NewRoomIntro-test.tsx | ||
ReadReceiptGroup-test.tsx | ||
RoomHeader-test.tsx | ||
RoomListHeader-test.tsx | ||
RoomPreviewBar-test.tsx | ||
RoomPreviewCard-test.tsx | ||
RoomTile-test.tsx | ||
SearchBar-test.tsx | ||
SearchResultTile-test.tsx | ||
SendMessageComposer-test.tsx | ||
VoiceRecordComposerTile-test.tsx |