Rocket.Chat icon indicating copy to clipboard operation
Rocket.Chat copied to clipboard

Pinned messages cannot be deleted

Open Atrikom-mkaiser opened this issue 2 years ago • 2 comments

Dear all, I have an issue with "pinned messages". When I post an important message to the team, I want to pin it in the chat. The result is, that the same message gets copied with a black stripe again with the above note "A message has been pinned"

This copied notification cannot be deleted (eventhough I am Admin) anymore and can also be seen by all users. Even when I "unpin" the message, it stays. In the setup there is a section for disabling notification upon chances in the chat (i.e. user added), but no option to disable the notification upon pinning a message. Anything I can do?

Atrikom-mkaiser avatar Sep 25 '23 06:09 Atrikom-mkaiser

Still occurs on 6.11.1

https://open.rocket.chat/channel/support?msg=Xt65tfDnHHgZLT3sg

If you delete a message the original pin message remains in the channel.

It is somewhat annoying though in a busy channel I guess it will disappear pretty quickly.

reetp avatar Aug 27 '24 15:08 reetp

A point just made that this is a bit of an issue.

If you pin and then unpin a message, the original pin containing the message still remains and cannot be deleted.

I'll refer this to the team for consideration.

reetp avatar Aug 27 '24 15:08 reetp

Hi @Atrikom-mkaiser

Thanks for reporting

Unfortunately, we don't have plans to work on this improvement.

We introduced recently a confirmation modal for mitigating the risk of pinning messages accidentally.

As a workaround, it's possible to use the prune message feature.

You just need to set an appropriate time range.

milton-rucks avatar Aug 28 '24 18:08 milton-rucks

Hi Milton.....

We introduced recently a confirmation modal for mitigating the risk of pinning messages accidentally.

So that's easier than removing the message? Really? It doesn't solved the problem - it's just a cackhanded bodge.

What happens if you don't realise you want to delete it?

Sorry - this is utter nonsense.

As a workaround, it's possible to use the prune message feature.

You are joking aren't you? Pruning? What about all the other thousands of messages you might lose that you don't want too?

Note also that this drives a coach and horses through your privacy mantra.

Sorry Milton.

I really expect better from you guys, and this really isn't it.

reetp avatar Aug 28 '24 18:08 reetp

Also what about the people who never realised this would bappen until too late?

Bolted, Door, Horse, Stable, Close.

reetp avatar Aug 28 '24 19:08 reetp

can i work on it?

anoniz avatar Sep 20 '24 18:09 anoniz

can i work on it?

Anyone can.

reetp avatar Sep 20 '24 18:09 reetp

Hello,

I am trying to solve this issue.

Upon reviewing the code, I came across the pinMessage.ts file (located in apps/meteor/app/message-pin/server/pinMessage.ts), and it seems that the issue might be related to the unpinMessage function. Both admins and general users have permission to unpin a message, but after they unpin it, the UI still displays the pinned message in the chat.

Could anyone provide more insights or guidance on how to resolve this? Any help would be greatly appreciated!

Curious-Goblin avatar Dec 03 '24 06:12 Curious-Goblin