RocketChat / Rocket.Chat.Apps-engine

The Rocket.Chat Apps engine and definitions.

Home Page:https://rocketchat.github.io/Rocket.Chat.Apps-engine/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Feature Request] Allow app to register an icon that invokes a slash command

yumenoshizuku opened this issue · comments

Would it be possible for an app to register an icon on the upper right corner of the messaging interface just like the how the Jitsi setting does it? The icon can simply be linked to execute a slash command.
jitsi

Does anyone know if this is something achievable in the RocketChat framework? If so, I can try to work on the Apps-engine code...

You can do the trick using custom Javascript in admin panel.
The main idea is push the icon to upper right corner by using querySelector, and then trigger it by listen click event.

Thanks for the hint! I was able to achieve that on the web version and desktop client, but the mobile app doesn't seem to support javascript execution, so I guess the closest achievable option now would be to have the app send a message with an embedded button and pin it in all rooms...