Merge pull request #1093 from matrix-org/luke/undefined-room-alias-if-not-specified-view-room

When not specified, remove roomAlias state in RoomViewStore
This commit is contained in:
David Baker 2017-06-14 14:17:06 +01:00 committed by GitHub
commit 302233db90

View file

@ -123,6 +123,7 @@ class RoomViewStore extends Store {
if (payload.room_id) { if (payload.room_id) {
const newState = { const newState = {
roomId: payload.room_id, roomId: payload.room_id,
roomAlias: payload.room_alias,
initialEventId: payload.event_id, initialEventId: payload.event_id,
initialEventPixelOffset: undefined, initialEventPixelOffset: undefined,
isInitialEventHighlighted: payload.highlighted, isInitialEventHighlighted: payload.highlighted,