Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Fix new rooms being titled 'Empty Room' #5587

Merged
merged 2 commits into from
Feb 1, 2021
Merged

Fix new rooms being titled 'Empty Room' #5587

merged 2 commits into from
Feb 1, 2021

Conversation

dangwynne
Copy link
Contributor

@dangwynne dangwynne commented Jan 28, 2021

The room name is not included in the original sync message received when the room is created so when the RoomTile instance is initially created the calculateRoomName method on room.js returns "Empty Room".

On creation of the Room Tile I have added an event handler on the Room model to listen for "Room.name" events and redraw the tile when the event is received.

Fixes element-hq/element-web#16270

@dangwynne dangwynne changed the title Fix issue #16270 new rooms are titled 'Empty Room'. Fixes #16270 new rooms are titled 'Empty Room'. Jan 28, 2021
@dangwynne dangwynne changed the title Fixes #16270 new rooms are titled 'Empty Room'. Fixes vector-im/element-web#16270 new rooms are titled 'Empty Room'. Jan 28, 2021
@t3chguy t3chguy requested a review from a team January 29, 2021 00:03
@SimonBrandner
Copy link
Contributor

SimonBrandner commented Jan 29, 2021

@dangwynne You can add "Fixes #16270" (fixes <issue link>) to the PR description. That will automatically close the issue when/if the PR is merged.

@jryans jryans changed the title Fixes vector-im/element-web#16270 new rooms are titled 'Empty Room'. Fix new rooms are titled 'Empty Room'. Jan 29, 2021
@jryans jryans changed the title Fix new rooms are titled 'Empty Room'. Fix new rooms being titled 'Empty Room' Jan 29, 2021
src/components/views/rooms/RoomTile.tsx Outdated Show resolved Hide resolved
@dangwynne dangwynne requested a review from jryans January 29, 2021 11:48
Copy link
Collaborator

@jryans jryans left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for working on this, looks good to me! 😄

@jryans jryans merged commit a32495b into matrix-org:develop Feb 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

New Rooms are titled "Empty Room"
3 participants