[FIX] Strange msg when setting room announcement, topic or description to be empty#11012
Conversation
|
Why don’t we change the hole message to something like “Room announcement was removed by ...”? :) |
|
@kaiiiiiiiii I looked into that, actually. The way these messages are set up right now, it'd either be very hacky to add, or require a relatively large change in how the messages are rendered. Unless I'm missing something important... |
|
Aaah, totally missed that part in your PR description ... sorry 'bout that ^^' |
|
@kaiiiiiiiii Don't worry about it :-) For insight, you can see it hardcoded here: https://github.com/RocketChat/Rocket.Chat/blob/develop/packages/rocketchat-channel-settings/client/startup/messageTypes.js#L29 I tried to add a |
|
I looked into it as well and your right, it's really tricky and there should be a complete revision of the hole process to create those messages.. An ugly, but probably working solution would be:
But I don't really like that idea and I'm not a 100% sure if it's gonna work ^^' |
People in my team were getting confused by this, so a very simple fix for now as, looking at the code, changing it to e.g. "Room announcement removed by user" will be quite difficult:
Before

After

It looks better than just keeping that empty string there, I suppose.