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

Implement always-on-screen capability for widgets #2056

Merged
merged 3 commits into from
Jul 16, 2018

Conversation

dbkr
Copy link
Member

@dbkr dbkr commented Jul 12, 2018

As per matrix-org/matrix-doc#1354

This is whitelisted to only jitsi widgets for now as per comment,
mostly because any widget that we may make always-on-screen we need
to preemptively put in a PersistedElement container, which is
unnecessary for any other widget.

Apologies that this does a bunch of refactoring which could have
been split out separately: I only discovered what needed to be
refactored in the process of doing this.

Fixes element-hq/element-web#6984

always-on-screen widgets now appear in the top-left where the
call preview normally is if you're not in the room that they're in.

Fixes element-hq/element-web#7007
Based off #2053
this.widgetMessaging.getCapabilities().then((requestedCapabilities) => {
console.log(`Widget ${this.props.id} requested capabilities:`, requestedCapabilities);
_setupWidgetMessaging() {
// FIXME: There's probably no reason to do this here: it should probably be done entirely
Copy link
Contributor

Choose a reason for hiding this comment

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

Agreed 👍

Copy link
Contributor

@bwindels bwindels left a comment

Choose a reason for hiding this comment

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

Some linting errors left to fix in PersistentApp and AppsDrawer, otherwise looks good.

@bwindels
Copy link
Contributor

conflicts in package.json now @dbkr :)

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.

Freeswitch -> Jitsi: Implement cross-room widget persistence
2 participants