Rocket.chat: Add /collapse and /expand commands

Created on 15 Dec 2015  路  8Comments  路  Source: RocketChat/Rocket.Chat

Hi all,

slack provides very useful slash-commands (https://get.slack.help/hc/en-us/articles/201259356-Using-slash-commands). would be very cool if rocket supports them also :)
To us the most important commands are:

/collapse
Collapse all inline images and video in the current channel (opposite of /expand)
/expand
Expand all inline images and video in the current channel (opposite of /collapse)

Because some users use links, hubot gif me, videos, images, ... a lot and others just don't want to see them.

What do you think?
Best regards
Steve

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Planned intermediate commands

Most helpful comment

The ability to hide media was added in: #2763 so this would just be a matter of hooking that up to a slash command

All 8 comments

We already support a few commands, such as /invite, /join and /leave. I'll update this issue title to reflect the request for /collapse and /expand.

thank you!

The ability to hide media was added in: #2763 so this would just be a matter of hooking that up to a slash command

Hi all, I've been trying to work on this and I was able to get /collapse to set "Collapse embedded media by default" to true in the preferences. But it seems like we will need to refresh in the chat page to reflect this change. Any advise for implementing the refresh aspect?

This should be a per user, per channel setting stored on the subscription.

I think most users don't want to do collapse or expand all messages via slash command. Could you also add something like /collapselast, which would collapse last collapsable message? Maybe we could see how it works in Slack/other apps?

@lorek123
Slack and other apps collapse all.

"I think most users don't want to do collapse or expand all messages via slash command."

...Seems anecdotal. A user study/survey or parity with other competing products would bring a more compelling case IMHO.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

zeigerpuppy picture zeigerpuppy  路  3Comments

engelgabriel picture engelgabriel  路  3Comments

tanc picture tanc  路  3Comments

mddvul22 picture mddvul22  路  3Comments

amayer5125 picture amayer5125  路  3Comments