element-hq / element-hq/element-android

Room widgets have no access to postMessage API

Open
#3,892 1 comment 1 reaction 0 assignees View on GitHub
A-Widgets T-Enhancement
Dominant language
Kotlin
Stars
3.7k
Forks
917
Avg merge
8d 20h
Merged PRs (30d)
1

Description

I am working on a room widget that uses the api to send stickers and potentially other events. This is working fine in the web version, but for android the api is not enabled at all for room widgets: [WidgetViewModel](https://github.com/vector-im/element-android/blob/fe9bd38115e080166baaa0c6ebb7d07d53c707a6/vector/src/main/java/im/vector/app/features/widgets/WidgetViewModel.kt#L252) [WidgetViewState](https://github.com/vector-im/element-android/blob/fe9bd38115e080166baaa0c6ebb7d07d53c707a6/vector/src/main/java/im/vector/app/features/widgets/WidgetViewState.kt#L39) This does not seem correct, because under this current functionality, the room widget is simply a webview that cannot interact with the chat at all.

What is the expected behavior here? I can provide a patch for this if I understand the correct api.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.