Rocket.Chat.Apps-engine icon indicating copy to clipboard operation
Rocket.Chat.Apps-engine copied to clipboard

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

Open yumenoshizuku opened this issue 4 years ago • 3 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

yumenoshizuku avatar Mar 12 '21 23:03 yumenoshizuku

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

yumenoshizuku avatar Mar 20 '21 22:03 yumenoshizuku

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.

juzser avatar Mar 24 '21 10:03 juzser

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...

yumenoshizuku avatar Mar 24 '21 19:03 yumenoshizuku