Fix incorrect display options lookup

This commit is contained in:
Max Goodhart
2020-11-11 23:27:44 -08:00
parent a8f01fa3b2
commit 7f2868e0ae

View File

@@ -258,7 +258,7 @@ export default class StreamWindow extends EventEmitter {
height: spaceHeight * h,
spaces,
}
const stream = streams.find((s) => s.url === content.url)
const stream = streams.byURL.get(content.url)
view.send({ type: 'OPTIONS', options: getDisplayOptions(stream) })
view.send({ type: 'DISPLAY', pos, content })
newViews.set(view.state.context.id, view)